forked from MarseyWorld/MarseyWorld
order group memberships by group name
parent
22f409558a
commit
bb6d38b3e7
|
@ -841,7 +841,7 @@ class User(Base):
|
||||||
return [x[0] for x in g.db.query(GroupMembership.group_name).filter(
|
return [x[0] for x in g.db.query(GroupMembership.group_name).filter(
|
||||||
GroupMembership.user_id == self.id,
|
GroupMembership.user_id == self.id,
|
||||||
GroupMembership.approved_utc != None,
|
GroupMembership.approved_utc != None,
|
||||||
).all()]
|
).order_by(GroupMembership.group_name).all()]
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def has_follower(self, user):
|
def has_follower(self, user):
|
||||||
|
|
Loading…
Reference in New Issue