X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/aa126d79c71639bd5bdc57fe61bf2cc121a5beb5..9bfbdb0f7175d3902ed63bd33e53aadff4f44d88:/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())