update views
This commit is contained in:
parent
867788cd59
commit
b04e642daa
@ -98,7 +98,7 @@ def accounting(request):
|
||||
if 'accountings' in request.POST:
|
||||
acc_ids = request.POST['accountings'].split(',')
|
||||
Accounting.objects.filter(id__in=acc_ids).update(billed=True)
|
||||
Accounting.objects.filter(id__in=acc_ids).update(account_user=request.user)
|
||||
Accounting.objects.filter(id__in=acc_ids).update(account_user=request.user.username)
|
||||
request.session['loc'] = str(loc)
|
||||
resp = redirect('accounting')
|
||||
resp['Location'] += '?loc={}'.format(str(loc))
|
||||
|
Loading…
Reference in New Issue
Block a user