From b04e642daa774f14eaa73a75f967d8a5c36b5bb0 Mon Sep 17 00:00:00 2001 From: Robert Einsle Date: Wed, 26 Apr 2017 10:36:31 +0200 Subject: [PATCH] update views --- billard/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billard/views.py b/billard/views.py index 0d4a040..c78c742 100644 --- a/billard/views.py +++ b/billard/views.py @@ -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))