aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-02-03 22:02:43 -0500
committerMitch Riedstra <mitch@riedstra.us>2018-02-03 22:02:43 -0500
commit4118b1d28b35ccf50a51b59e35cb897fb0dcc8e2 (patch)
treed8789ad456c85d6bf4e4f883493bed6174b5adf6 /app
parent93a57dc5afb2962d675c51504ecdb3afa34a95a7 (diff)
downloaddispatch-tracker-4118b1d28b35ccf50a51b59e35cb897fb0dcc8e2.tar.gz
dispatch-tracker-4118b1d28b35ccf50a51b59e35cb897fb0dcc8e2.tar.xz
Siwtch user to use the context, not the current one logged in
Diffstat (limited to 'app')
-rw-r--r--app/dispatch/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/dispatch/views.py b/app/dispatch/views.py
index b27bea5..b16e551 100644
--- a/app/dispatch/views.py
+++ b/app/dispatch/views.py
@@ -151,7 +151,7 @@ class DriverSummary(UserPassesTestMixin, LoadDateSort):
context['related_invoices'] = Invoice.objects.filter(
invoice_date__range=(context['week_dates']['start_date'],
context['week_dates']['end_date']),
- user=self.request.user)
+ user=self.object)
loads_by_date = context['loads']
if len(context['related_invoices']) >= 1: