X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c3d135f90804db7231063cb0aa6e525a55a67bfa..717643bdf87c1447a8d312d26307feee6a733b97:/apps/cover/views.py diff --git a/apps/cover/views.py b/apps/cover/views.py index 4bb6d504..6b3344b4 100644 --- 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": - 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())