diff --git a/decide/booth/views.py b/decide/booth/views.py index 53eb984189..7e560d2706 100644 --- a/decide/booth/views.py +++ b/decide/booth/views.py @@ -16,6 +16,12 @@ def get_context_data(self, **kwargs): try: r = mods.get('voting', params={'id': vid}) + + # Casting numbers to string to manage in javascript with BigInt + # and avoid problems with js and big number conversion + for k, v in r[0]['pub_key'].items(): + r[0]['pub_key'][k] = str(v) + context['voting'] = json.dumps(r[0]) except: raise Http404