order group memberships by group name

master
Aevann 2023-07-30 12:46:18 +03:00
parent 22f409558a
commit bb6d38b3e7
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ class User(Base):
return [x[0] for x in g.db.query(GroupMembership.group_name).filter(
GroupMembership.user_id == self.id,
GroupMembership.approved_utc != None,
).all()]
).order_by(GroupMembership.group_name).all()]
@lazy
def has_follower(self, user):