Return groups in group order for email
This commit is contained in:
parent
4eec729dc2
commit
8a2bb6dfd6
@ -79,6 +79,9 @@ class Group(models.Model):
|
||||
if group.contains_member(member):
|
||||
groups.add(group)
|
||||
|
||||
groups = list(groups)
|
||||
groups.sort(key=lambda group: group.order)
|
||||
|
||||
return groups
|
||||
|
||||
class BulletinItem(models.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user