Skip to content

Commit

Permalink
Add macrogroup_id to group serializer.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Feb 19, 2024
1 parent def108e commit 23de9e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions g3w-admin/core/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ def to_representation(self, instance):
mapcontrol.name: options
})

# Macrogroups
ret['macrogroup_id'] = [macrogroup.id for macrogroup in instance.macrogroups.all()]

return ret

class Meta:
Expand Down

0 comments on commit 23de9e8

Please sign in to comment.