tags in detail view are sorted

parent 6b4d7674
...@@ -1483,6 +1483,8 @@ def show_book(book_id): ...@@ -1483,6 +1483,8 @@ def show_book(book_id):
else: else:
have_read = None have_read = None
entries.tags = sort(entries.tags, key = lambda tag: tag.name)
return render_title_template('detail.html', entry=entries, cc=cc, is_xhr=request.is_xhr, return render_title_template('detail.html', entry=entries, cc=cc, is_xhr=request.is_xhr,
title=entries.title, books_shelfs=book_in_shelfs, have_read=have_read, title=entries.title, books_shelfs=book_in_shelfs, have_read=have_read,
rarsupport=rar_support) rarsupport=rar_support)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment