X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/bee7cca13d8612ecd13592315e6022fcdadcba32..d04b366656def9a659889c0c83b07ccd0833fd5d:/src/picture/views.py 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)