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