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