Add order_by.

This commit is contained in:
Alexis Lahouze 2015-07-15 18:30:15 +02:00
parent e18009b0dd
commit 9efade745c

View File

@ -107,7 +107,7 @@ class Account(db.Model):
status_query, status_query.c.account_id == cls.id status_query, status_query.c.account_id == cls.id
) )
return query return query.order_by(cls.name)
@validates('authorized_overdraft') @validates('authorized_overdraft')
def validate_authorized_overdraft(self, key, authorized_overdraft): def validate_authorized_overdraft(self, key, authorized_overdraft):