X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0e5d704f09ed528815a097b6066acf4ebaea0f08..a409c6cc6901eea44c2cbe3a49038eb21f2db18d:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index aeed403ab..bca75e78f 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -351,7 +351,7 @@ def import_book(request): _("An error occurred: %(exception)s\n\n%(tb)s") % { 'exception': exception, 'tb': tb }, - mimetype='text/plain' + content_type='text/plain' ) return HttpResponse(_("Book imported successfully")) return HttpResponse(_("Error importing file: %r") % book_import_form.errors)