summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py
index ce20564..0f23439 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -64,6 +64,10 @@ def InternshipForms(request):
return render_to_response('tbc/internship-forms.html', context)
+def SampleIpynb(request):
+ return render_to_response('tbc/sample.html')
+
+
def AboutPytbc(request):
context = {}
images = []
@@ -833,7 +837,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