From 380dcdc86f5ac35d8112b0ff8693c4882e5f4d97 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sun, 4 Feb 2018 12:41:26 -0500 Subject: Add in delivered to to the filename on download --- app/dispatch/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/dispatch/misc.py') diff --git a/app/dispatch/misc.py b/app/dispatch/misc.py index c1d100a..d876cfd 100644 --- a/app/dispatch/misc.py +++ b/app/dispatch/misc.py @@ -64,7 +64,8 @@ def zip_attachments_for_loads(loads, pre_append, date): ext = '.pdf' # Get the name for the zip file - zipname = l.description + '-' + l.user.identity.name + ext + zipname = l.description + ' - ' + l.delivered_to + ' - ' + \ + l.user.identity.name + ext zipname = get_valid_filename(zipname) z.write(p.document.path, zipname) -- cgit v1.2.3