fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Editor update - Hinting metadata values
[redakcja.git]
/
apps
/
cover
/
views.py
diff --git
a/apps/cover/views.py
b/apps/cover/views.py
index
2a21b5c
..
3d30a2a
100644
(file)
--- a/
apps/cover/views.py
+++ b/
apps/cover/views.py
@@
-125,7
+125,7
@@
def add_image(request):
if ff.is_valid():
form = forms.ImageAddForm(ff.cleaned_data)
else:
if ff.is_valid():
form = forms.ImageAddForm(ff.cleaned_data)
else:
- form = forms.ImageAddForm(request.POST)
+ form = forms.ImageAddForm(request.POST
, request.FILES
)
if form.is_valid():
obj = form.save()
return HttpResponseRedirect(obj.get_absolute_url())
if form.is_valid():
obj = form.save()
return HttpResponseRedirect(obj.get_absolute_url())