Add select_related to fetch schedules user group information (#1109)

This commit is contained in:
Matias Bordese 2023-01-09 13:15:27 -03:00 committed by GitHub
parent db2e4f4018
commit 87fad5eec1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ from common.api_helpers.mixins import EagerLoadingMixin
class PolymorphicScheduleSerializer(EagerLoadingMixin, PolymorphicSerializer):
SELECT_RELATED = ["organization"]
SELECT_RELATED = ["organization", "user_group"]
resource_type_field_name = "type"