From bf44774f22f8dd9de064a66e710a4fd2135ad96a Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 2 Jun 2018 17:02:18 +0200 Subject: [PATCH] Tags in detail view are sorted now --- cps/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/db.py b/cps/db.py index 7bb4ab7c..37363af8 100755 --- a/cps/db.py +++ b/cps/db.py @@ -254,7 +254,7 @@ class Books(Base): uuid = Column(String) authors = relationship('Authors', secondary=books_authors_link, backref='books') - tags = relationship('Tags', secondary=books_tags_link, backref='books') + tags = relationship('Tags', secondary=books_tags_link, backref='books',order_by="Tags.name") comments = relationship('Comments', backref='books') data = relationship('Data', backref='books') series = relationship('Series', secondary=books_series_link, backref='books')