fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes #932: bookimport works with parent-child relations in unsorted xml files
[wolnelektury.git]
/
apps
/
catalogue
/
views.py
diff --git
a/apps/catalogue/views.py
b/apps/catalogue/views.py
index
5be5122
..
7b8050f
100644
(file)
--- 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 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)
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')
archive.close()
response = HttpResponse(content_type='application/zip', mimetype='application/x-zip-compressed')
- response['Content-Disposition'] = 'attachment; filename=%s.zip' % s
helf.sort_key
+ response['Content-Disposition'] = 'attachment; filename=%s.zip' % s
lughifi(shelf.name)
response['Content-Length'] = temp.tell()
temp.seek(0)
response['Content-Length'] = temp.tell()
temp.seek(0)