{{{
message = models.JSONField(editable=False, default='')
}}}
When running
{{{
manage.py check
}}}
I receive a warning, that IMO should not be triggered:
{{{
message: (fields.E010) JSONField default should be a callable instead of
an instance so that it's not shared between all field instances.
HINT: Use a callable instead, e.g., use `dict` instead of `{}`.
}}}
django should check, if the default is mutable and only if so issue that
warning.
--
Ticket URL: <https://code.djangoproject.com/ticket/34435>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.