fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix.
[redakcja.git]
/
apps
/
cover
/
views.py
diff --git
a/apps/cover/views.py
b/apps/cover/views.py
index
4bb6d50
..
6b3344b
100644
(file)
--- a/
apps/cover/views.py
+++ b/
apps/cover/views.py
@@
-87,7
+87,7
@@
def image(request, pk):
if request.user.has_perm('cover.change_image'):
if request.method == "POST":
if request.user.has_perm('cover.change_image'):
if request.method == "POST":
- form = forms.ImageEditForm(request.POST, instance=image)
+ form = forms.ImageEditForm(request.POST,
request.FILES,
instance=image)
if form.is_valid():
form.save()
return HttpResponseRedirect(image.get_absolute_url())
if form.is_valid():
form.save()
return HttpResponseRedirect(image.get_absolute_url())