parent
50823e5688
commit
bc89db6179
@ -43,7 +43,8 @@ class AccountingView(generic.ListView):
|
||||
context_object_name = 'accounting'
|
||||
|
||||
def get_queryset(self):
|
||||
return Accounting.objects.filter(billed=False).exclude(time_to__isnull=True).order_by('time_from')
|
||||
return Accounting.objects.filter(billed=False).filter(desk__client__location_id=self.kwargs['pk'])\
|
||||
.exclude(time_to__isnull=True).order_by('time_from')
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
result = super(AccountingView, self).dispatch(request, *args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user