summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/views.py')
-rw-r--r--tbc/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 358a606..d14093e 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -862,6 +862,11 @@ def confirm_book_details(request):
context['no_notebooks'] = [i for i in range(1, book_to_update.no_chapters+1)]
return render_to_response('tbc/update-code.html', context)
return HttpResponseRedirect('/submit-code/')
+ else:
+ context.update(csrf(request))
+ context['form'] = book_form
+ context['book'] = book_to_update
+ return render_to_response('tbc/confirm-details.html', context)
else:
book_form = BookForm()
book_form.initial['title'] = book_to_update.title