summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
authorhardythe12014-02-19 15:06:49 +0530
committerhardythe12014-02-19 15:06:49 +0530
commit8440d0ec6734d384aba024fb6f01f307137f5895 (patch)
tree6b39ed83140d335849303075db24f874ea76b089 /tbc/views.py
parent757d5b84d89771257c94fb7ffbe952a08adc1d1c (diff)
downloadPython-TBC-Interface-8440d0ec6734d384aba024fb6f01f307137f5895.tar.gz
Python-TBC-Interface-8440d0ec6734d384aba024fb6f01f307137f5895.tar.bz2
Python-TBC-Interface-8440d0ec6734d384aba024fb6f01f307137f5895.zip
changing the template to receive a book id
Diffstat (limited to 'tbc/views.py')
-rw-r--r--tbc/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 0660d04..bc35c18 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -278,6 +278,7 @@ def ContentUpload(request, book_id=None):
context = {}
context.update(csrf(request))
context['user'] = user
+ context['curr_book'] = curr_book
context['no_notebooks'] = [i for i in range(1, curr_book.no_chapters+1)]
context['no_images'] = [i for i in range(1, 4)]
return render_to_response('tbc/upload-content.html', context)