fix for book form problem
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 5 Jan 2012 14:07:53 +0000 (15:07 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Thu, 5 Jan 2012 14:07:53 +0000 (15:07 +0100)
apps/catalogue/views.py

index 3c0e70f..f56ec5b 100644 (file)
@@ -316,7 +316,7 @@ def book(request, slug):
                 return http.HttpResponseRedirect(book.get_absolute_url())
         else:
             form = forms.BookForm(instance=book)
                 return http.HttpResponseRedirect(book.get_absolute_url())
         else:
             form = forms.BookForm(instance=book)
-            editable = True
+        editable = True
     else:
         form = forms.ReadonlyBookForm(instance=book)
         editable = False
     else:
         form = forms.ReadonlyBookForm(instance=book)
         editable = False