#25417: Add a system check for an invalid default on a model field
-------------------------------------+-------------------------------------
Reporter: avorio | Owner: charettes
Type: New feature | Status: closed
Component: Core (System | Version: master
checks) |
Severity: Normal | Resolution: fixed
Keywords: decimal, | Triage Stage: Ready for
InvalidOperation, migrations | checkin
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by charettes):
> I'll also note that this isn't even the first time I've had to work
around a buggy, overzealous, or plain wrong system check.
The system check is a still a ''new'' component of Django and from the
feedback we've had so far I think the prevention of misconfiguration and
footguns outweigh the nuisance caused by some initial bugs and required
adjustments.
While I could be convinced we should remove or downgrade this check to a
warning your actual use case doesn't convince me it's worth it. I still
think this check is not buggy, overzealous nor plain wrong but that it's
your use case that is bug prone.
As Tim suggested I think gathering feedback from the developpers mailing
list could help your case here.
In the meantime if want to work around this check you can override the
`check()` method of your reusable field to filter out `'fields.E008'`
errors.
--
Ticket URL: <https://code.djangoproject.com/ticket/25417#comment:20>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.9c3daca4411d03f696fc90c11c071cbb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.