update views

This commit is contained in:
Robert Einsle 2017-04-26 10:36:31 +02:00
parent 867788cd59
commit b04e642daa

View File

@ -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))