summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12014-06-24 15:26:02 +0530
committerhardythe12014-06-24 15:26:02 +0530
commit9a2adc69c8c99b3bcc630df4ebaf77db964c8b55 (patch)
tree425e2d53515b96dd0bd5bee435600e078e20ed2d
parentf685e5b2b716fa848244e6daa5adad7e6ad581ba (diff)
downloadPython-TBC-Interface-9a2adc69c8c99b3bcc630df4ebaf77db964c8b55.tar.gz
Python-TBC-Interface-9a2adc69c8c99b3bcc630df4ebaf77db964c8b55.tar.bz2
Python-TBC-Interface-9a2adc69c8c99b3bcc630df4ebaf77db964c8b55.zip
correcting the form name
-rw-r--r--tbc/templates/tbc/completed_books.html4
-rwxr-xr-xtbc/views.py1
2 files changed, 2 insertions, 3 deletions
diff --git a/tbc/templates/tbc/completed_books.html b/tbc/templates/tbc/completed_books.html
index f964987..473f619 100644
--- a/tbc/templates/tbc/completed_books.html
+++ b/tbc/templates/tbc/completed_books.html
@@ -5,8 +5,7 @@
<script type="text/javascript">
function submitCategory()
{
- alert("submited");
- document.forms.browseBooks.submit();
+ document.forms.completedbooks.submit();
}
</script>
{% endblock %}
@@ -33,7 +32,6 @@ function submitCategory()
<option value="others">Others</option>
</select>
</center>
- </div>
<ol>
{% for book in completed_books %}
<li><a href="{% url 'tbc:BookDetails' book.id %}">{{ book.title }} by {{ book.author }}</a></li>
diff --git a/tbc/views.py b/tbc/views.py
index 0051f8d..a232b36 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -619,6 +619,7 @@ def ConvertNotebook(request, notebook_path=None):
def CompletedBooks(request):
context = {}
+ context.update(csrf(request))
category = "All"
if request.user.is_anonymous():
context['anonymous'] = True