X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c3d135f90804db7231063cb0aa6e525a55a67bfa..3f961f9924a7b458e8ebb00b7135f013d52ce8d2:/apps/cover/views.py?ds=sidebyside 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())