Skip to content

Commit

Permalink
Merge pull request #180 from somewes/feature/membership-types
Browse files Browse the repository at this point in the history
order by sort order and id
  • Loading branch information
somewes authored Oct 31, 2023
2 parents dce797f + e1a9146 commit 5248804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def get_membership_cache(self, group_ids=None, is_active=True):
if group_ids:
membership_queryset = membership_queryset.filter(entity_group_id__in=group_ids)

membership_queryset = membership_queryset.order_by('id')
membership_queryset = membership_queryset.order_by('sort_order', 'id')

membership_queryset = membership_queryset.values_list('entity_group_id', 'entity_id', 'sub_entity_kind_id')

Expand Down

0 comments on commit 5248804

Please sign in to comment.