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