#32286: Definition of JSONField causes issue with validation for a Falsey value
---------------------------------+--------------------------------------
Reporter: Adam Carruthers | Owner: nobody
Type: Uncategorized | Status: closed
Component: Forms | Version: 3.1
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
* component: Uncategorized => Forms
Comment:
Yes, Django doesn't run validators on empty values, however you can create
a custom form field and change `empty_values` to the `([],)`, see #19997
and
[https://github.com/django/django/blob/28d998a41c92bdac8eeae6509ecc87ed044b30d0/tests/forms_tests/tests/test_forms.py#L3045-L3064
an example in tests]. Please use one of
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
support channels] if you have further questions.
--
Ticket URL: <https://code.djangoproject.com/ticket/32286#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.1737def23c3853c00cd43e34641e9b6f%40djangoproject.com.