X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0e5d704f09ed528815a097b6066acf4ebaea0f08..58554ad41d789d21c7477c01fd8c27ff1f590445:/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)