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