From 49109e55a37f9ee6e345372a92080562bd3b18e3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 17 Sep 2018 16:57:21 +0200 Subject: Manage boolean type for JSON fields (refs #4235) --- ishtar_common/forms.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ishtar_common/forms.py') diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 3ecec9b06..eec66e1a6 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -116,6 +116,7 @@ JSON_VALUE_TYPES_FIELDS = { 'I': (forms.IntegerField, None), 'F': (forms.FloatField, None), 'D': (DateField, None), + 'B': (forms.NullBooleanField, None), 'C': (widgets.Select2DynamicField, None), } -- cgit v1.2.3