X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/907aba88951334676a259dccc8f7edd8934d5e00..51502b3a51b8a244149e5e94dcb2229bbcec1e69:/src/catalogue/views.py?ds=sidebyside diff --git a/src/catalogue/views.py b/src/catalogue/views.py index ef2527b59..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) @@ -449,7 +449,7 @@ def tag_catalogue(request, category): def collections(request): - objects = Collection.objects.filter(role='') + objects = Collection.objects.all() if len(objects) > 3: best = random.sample(list(objects), 3)