X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/19b6808a73f77fffdbb80d049dd1f8d81eec9d78..4175dca3688ed6ce25a270cdfe10f2814564821c:/apps/catalogue/views.py diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 5be5122bd..7b8050f29 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -34,6 +34,7 @@ from catalogue import models from catalogue import forms from catalogue.utils import split_tags from newtagging import views as newtagging_views +from slughifi import slughifi staff_required = user_passes_test(lambda user: user.is_staff) @@ -589,7 +590,7 @@ def download_shelf(request, slug): archive.close() response = HttpResponse(content_type='application/zip', mimetype='application/x-zip-compressed') - response['Content-Disposition'] = 'attachment; filename=%s.zip' % shelf.sort_key + response['Content-Disposition'] = 'attachment; filename=%s.zip' % slughifi(shelf.name) response['Content-Length'] = temp.tell() temp.seek(0)