1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00

Sort semester starting with newest

This commit is contained in:
Mo 2022-09-12 17:57:29 +02:00
parent 1d8c5db16c
commit 0b4316a713

View file

@ -129,7 +129,7 @@ class UserView(SecureAdminModelView):
@staticmethod
def semesterQueryFactory():
return Semester.query
return Semester.query.order_by(Semester.id.desc())
@staticmethod
def default_roles():