From 13fa332679ff662890776b1f657c38abb71b104d Mon Sep 17 00:00:00 2001 From: Alexander Werner Date: Mon, 6 Mar 2017 19:03:09 +0100 Subject: [PATCH] updated modal code --- billard/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billard/views.py b/billard/views.py index 7775eb0..2f04178 100644 --- a/billard/views.py +++ b/billard/views.py @@ -54,7 +54,7 @@ def index(request): loc = min_loc locations = Location.objects.filter(users__id=request.user.id).order_by('code') clients = Client.objects.filter(location_id=loc).order_by('id') - accounts = Accounting.objects.filter(reporter_uuid__in=Client.objects.filter(report_user=request.user)) + accounts = Accounting.objects.filter(reporter_uuid__in=Client.objects.get(report_user=request.user).uuid) context = { 'range': range(1, 9), 'locations': locations,