From 35dd351a17a06364dba9840b103e34b77b0c2ae1 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Sat, 4 Oct 2014 19:19:48 +0530 Subject: changed BookDetails chapter ordering field to pk --- tbc/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tbc') diff --git a/tbc/views.py b/tbc/views.py index 47637ad..fc64a8d 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('name') + chapters = Chapters.objects.filter(book=book).order_by('pk') images = ScreenShots.objects.filter(book=book) context['chapters'] = chapters context['images'] = images -- cgit