From 6c5887864686bc9690fb412f6145386c05ee2ede Mon Sep 17 00:00:00 2001 From: Alexander Werner Date: Thu, 17 Aug 2017 20:12:22 +0200 Subject: [PATCH] Fixed typeerror in accountmodal --- billard/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billard/views.py b/billard/views.py index 13622f3..e728437 100644 --- a/billard/views.py +++ b/billard/views.py @@ -88,7 +88,7 @@ def account_modal_view(request, loc_pk): context = { 'accounts': accounts, 'loc_pk': loc_pk, - 'pks': ','.join([account.pk for account in accounts]), + 'pks': ','.join([str(account.pk) for account in accounts]), } return render(request, 'billard/accountmodal.html', context=context)