X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/bee7cca13d8612ecd13592315e6022fcdadcba32..0c502550a4f04aa016df8729af2ae2f85c0b495a:/src/picture/views.py?ds=sidebyside diff --git a/src/picture/views.py b/src/picture/views.py index f42b0bb8d..e40e0ab41 100644 --- a/src/picture/views.py +++ b/src/picture/views.py @@ -95,7 +95,7 @@ def import_picture(request): exception = pprint.pformat(info[1]) tb = '\n'.join(traceback.format_tb(info[2])) return HttpResponse(_("An error occurred: %(exception)s\n\n%(tb)s") % - {'exception': exception, 'tb': tb}, mimetype='text/plain') + {'exception': exception, 'tb': tb}, content_type='text/plain') return HttpResponse(_("Picture imported successfully")) else: return HttpResponse(_("Error importing file: %r") % import_form.errors)