From 735c12ea456660c311ef97d2fa64eb46dea076c5 Mon Sep 17 00:00:00 2001 From: 0livd <0livd@users.noreply.github.com> Date: Sun, 12 Mar 2017 13:15:23 +0100 Subject: [PATCH] Use project.id in export filename as it is already slugified --- budget/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/budget/web.py b/budget/web.py index 1c58a62b..9fd6228f 100644 --- a/budget/web.py +++ b/budget/web.py @@ -225,7 +225,7 @@ def edit_project(): return send_file(file2export, attachment_filename="%s-%s.%s" % - (g.project.name, export_type, export_format), + (g.project.id, export_type, export_format), as_attachment=True ) else: