diff options
author | hardythe1 | 2014-09-30 15:42:35 +0530 |
---|---|---|
committer | hardythe1 | 2014-09-30 15:42:35 +0530 |
commit | 9cad9cc2d00e8efa73cf0e501ba7973a3d807fe5 (patch) | |
tree | 49631ccad60650a69df9753dbbe1eb07df42c787 /tbc | |
parent | f0b6e7e8f6a1a4b04b6276c71a7461bafedc7ccc (diff) | |
download | Python-TBC-Interface-9cad9cc2d00e8efa73cf0e501ba7973a3d807fe5.tar.gz Python-TBC-Interface-9cad9cc2d00e8efa73cf0e501ba7973a3d807fe5.tar.bz2 Python-TBC-Interface-9cad9cc2d00e8efa73cf0e501ba7973a3d807fe5.zip |
sorting the chapter names based on id
Diffstat (limited to 'tbc')
-rwxr-xr-x | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py index 0705879..5167978 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -451,7 +451,7 @@ def BookDetails(request, book_id=None): else: context['user'] = request.user book = Book.objects.get(id=book_id) - chapters = Chapters.objects.filter(book=book).order_by('id') + chapters = Chapters.objects.filter(book=book).order_by('name','pk') images = ScreenShots.objects.filter(book=book) context['chapters'] = chapters context['images'] = images |