summaryrefslogtreecommitdiff
path: root/archaeological_operations/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r--archaeological_operations/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index 92ac0373b..c899b1c4d 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -275,8 +275,7 @@ def generatedoc_administrativeactop(request, pk):
MIMES = {'odt':'application/vnd.oasis.opendocument.text',
'ods':'application/vnd.oasis.opendocument.spreadsheet'}
ext = doc.split('.')[-1]
- doc_name = slugify(doc.split(os.path.sep)[-1][:-len(ext)])+ "."\
- + ext
+ doc_name = act_file.get_filename() + "." + ext
mimetype = 'text/csv'
if ext in MIMES:
mimetype = MIMES[ext]