diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-01-10 17:37:14 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-01-10 17:37:14 +0100 |
commit | 2cbc41543a085c26809e1284752f072cce22f8bd (patch) | |
tree | 49342f144c70b19141801d1bd05d22fb604f2f3b /models.py | |
parent | 1f98d945110b7cd467811e784eead280edcdee9e (diff) | |
download | padlite-teams-2cbc41543a085c26809e1284752f072cce22f8bd.tar.gz padlite-teams-2cbc41543a085c26809e1284752f072cce22f8bd.tar.bz2 padlite-teams-2cbc41543a085c26809e1284752f072cce22f8bd.zip |
Sort group and pad listings
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -155,7 +155,8 @@ class Pad(APIMixin, SessionMixin, db.Model): nullable=True) group = db.relationship( - "Group", backref=backref("pads", cascade="delete")) + "Group", backref=backref("pads", order_by="desc(Pad.created)", + cascade="delete")) def __str__(self): return self.name |