X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/aa126d79c71639bd5bdc57fe61bf2cc121a5beb5..7a8dbdfbd25f390370d060e78701e491d54c8d62:/apps/cover/views.py diff --git a/apps/cover/views.py b/apps/cover/views.py index 2a21b5c5..3d30a2a5 100644 --- 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: - 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())