Add select_related to fetch schedules user group information (#1109)
This commit is contained in:
parent
db2e4f4018
commit
87fad5eec1
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue