diff options
author | Trupti Rajesh Kini | 2016-09-23 18:18:29 +0530 |
---|---|---|
committer | GitHub | 2016-09-23 18:18:29 +0530 |
commit | f87690ed660222a4e2403bced62528ac7ad8a4dd (patch) | |
tree | 2a3f25757e1dada0f36312ac254fa934540d3bf0 | |
parent | 21a153e8c64afd38d9e20ce23543e53e65b5e2c3 (diff) | |
download | Python-TBC-Interface-f87690ed660222a4e2403bced62528ac7ad8a4dd.tar.gz Python-TBC-Interface-f87690ed660222a4e2403bced62528ac7ad8a4dd.tar.bz2 Python-TBC-Interface-f87690ed660222a4e2403bced62528ac7ad8a4dd.zip |
updated confirm_book_details
Now returns httpresponse object
-rw-r--r-- | tbc/views.py | 5 |
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 |