wrong indent resulted in undefined variable
authorLibrary Admin <librarian@szo.nowoczesnapolska.org.pl>
Tue, 10 Sep 2013 12:43:21 +0000 (14:43 +0200)
committerLibrary Admin <librarian@szo.nowoczesnapolska.org.pl>
Tue, 10 Sep 2013 12:43:21 +0000 (14:43 +0200)
apps/catalogue/views.py

index bc54c3e..ed5b15f 100644 (file)
@@ -353,7 +353,7 @@ def image(request, slug):
                 return http.HttpResponseRedirect(image.get_absolute_url())
         else:
             form = forms.ImageForm(instance=image)
                 return http.HttpResponseRedirect(image.get_absolute_url())
         else:
             form = forms.ImageForm(instance=image)
-            editable = True
+        editable = True
     else:
         form = forms.ReadonlyImageForm(instance=image)
         editable = False
     else:
         form = forms.ReadonlyImageForm(instance=image)
         editable = False