fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add Book.ancestor m2m.
[wolnelektury.git]
/
apps
/
reporting
/
utils.py
diff --git
a/apps/reporting/utils.py
b/apps/reporting/utils.py
index
06a1680
..
8ecb9b0
100755
(executable)
--- a/
apps/reporting/utils.py
+++ b/
apps/reporting/utils.py
@@
-113,7
+113,7
@@
def generated_file_view(file_name, mime_type, send_name=None, signals=None):
else:
name = send_name
- response = HttpResponse(
mime
type=mime_type)
+ response = HttpResponse(
content_
type=mime_type)
response['Content-Disposition'] = 'attachment; filename=%s' % name
with open(file_path) as f:
for chunk in read_chunks(f):