From 4b70f4abf1fc29cc36ebb2179e4ddb4fa5258a95 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 12 Nov 2013 01:07:50 +0530 Subject: resolving few bugs --- tbc/templates/tbc/book-details.html | 4 ++-- tbc/templates/tbc/browse-books.html | 11 ++++++++--- tbc/views.py | 31 ++++++++----------------------- 3 files changed, 18 insertions(+), 28 deletions(-) diff --git a/tbc/templates/tbc/book-details.html b/tbc/templates/tbc/book-details.html index 5061ca7..f2912f5 100644 --- a/tbc/templates/tbc/book-details.html +++ b/tbc/templates/tbc/book-details.html @@ -13,14 +13,14 @@
    {% for chapter in chapters %} -
  1. {{ chapter.name }} +
  2. {{ chapter.name }} {% endfor %}

Download Book as Zip
Author:   {{ book.author }} -
Publisher:   {{ book.publisher }} +
Publisher:   {{ book.publisher_place }}
ISBN:   {{ book.isbn }}
Contributor:   {{ book.contributor.user.first_name }} {{ book.contributor.user.last_name }}
Email:   {{ book.contributor.user.email }}
diff --git a/tbc/templates/tbc/browse-books.html b/tbc/templates/tbc/browse-books.html index 6047ce1..0c6924d 100644 --- a/tbc/templates/tbc/browse-books.html +++ b/tbc/templates/tbc/browse-books.html @@ -5,13 +5,15 @@ + {% endblock %} {% block content %} +
+{% csrf_token %}