django-json-widget icon indicating copy to clipboard operation
django-json-widget copied to clipboard

Widget doesn't work with boolean values

Open h4nz11 opened this issue 7 months ago • 0 comments

  • django-json-widget version:
  • Django version: 5.0.2
  • Python version: 3.10
  • Operating System: Ubuntu

Description

The widget doesn't display data if the JSONField contains a boolean value. It throws a javascript exception:

Uncaught ReferenceError: True is not defined
    at change/:982:186
    at change/:984:7

Loaded data in HTML:

var json = {'label': 'Metered consumption - house', 'category': 'consumption', 'convertToNegative': True};

h4nz11 avatar Jul 13 '24 06:07 h4nz11