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,