Skip to content

Commit

Permalink
Order MemberGroup by name by default.
Browse files Browse the repository at this point in the history
This wasn't ideal for the old i18n-capable version of concrexit,
but we dropped that so the comment is outdated.

This does likely mean some redundant sorting is done, but that's not an
issue.
  • Loading branch information
ColonelPhantom committed Oct 25, 2023
1 parent 56692f6 commit 43dd402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/activemembers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_absolute_url(self):
class Meta:
verbose_name = _("member group")
verbose_name_plural = _("member groups")
# ordering is done in the manager, to sort on a translated field
ordering = ["name"]


class Committee(MemberGroup):
Expand Down

0 comments on commit 43dd402

Please sign in to comment.