This field is needed because the plain JSONField does not permit empty arrays - [] - or empty objects - {} - when the field is marked as required. Those values explicitly evaluate to a null value, and are rejected. Instead, the IETFJSONField accepts two new arguments to control this: - empty_values: An array of values that should evaluate to null/empty, and be rejected. - accepted_empty_values: An array of values that should *not* evaluate to null/empty, and be accepted. This allows the programmer to specify either a positive or negative statement of what values to accept. Fixes issue #3331. Commit ready for merge. - Legacy-Id: 19401 |
||
---|---|---|
.. | ||
management | ||
migrations | ||
templatetags | ||
__init__.py | ||
admin.py | ||
colors.py | ||
dot.py | ||
factories.py | ||
feeds.py | ||
forms.py | ||
mails.py | ||
milestones.py | ||
models.py | ||
resources.py | ||
tests.py | ||
tests_info.py | ||
tests_js.py | ||
tests_review.py | ||
urls.py | ||
utils.py | ||
views.py |