Added modal view
This commit is contained in:
@@ -54,11 +54,13 @@ 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))
|
||||
context = {
|
||||
'range': range(1, 9),
|
||||
'locations': locations,
|
||||
'clients': clients,
|
||||
'location_id': int(loc),
|
||||
'accounts': accounts,
|
||||
}
|
||||
return render(request, template, context=context)
|
||||
if request.method == 'POST':
|
||||
|
||||
Reference in New Issue
Block a user