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/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/dispatch/views.py') diff --git a/app/dispatch/views.py b/app/dispatch/views.py index 1042d67..2aa82f5 100644 --- a/app/dispatch/views.py +++ b/app/dispatch/views.py @@ -473,7 +473,8 @@ def PaperworkDownload(request, load_id, pk): print(e) ext = '.pdf' - filename = get_valid_filename(load.description + ext) + filename = get_valid_filename(load.description + " - " + \ + load.delivered_to + ext) response = HttpResponse( fh.read(), -- cgit v1.2.3