#36813: Convert system checks for max_length and max_digits to __init__()
checks.
-------------------------------------+-------------------------------------
Reporter: Jacob Walls | Owner: Mehraz
Type: | Hossain Rumman
Cleanup/optimization | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):
I suppose if there's consensus that using the system check framework for
this sort of validation was a design mistake, it can be corrected. A
rather clear line of delineation is that anything that can feasibly be
validated in `__init__()` should be done there, although I also note
there's some debate about what's truly an "error" and there might be a
case for silencing/skipping some validation, for example,
[https://code.djangoproject.com/ticket/36273#comment:8 the validation of
Index.name].
--
Ticket URL: <https://code.djangoproject.com/ticket/36813#comment:6>
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 visit
https://groups.google.com/d/msgid/django-updates/0107019b4e328cbd-a49f193f-2e39-4215-a86d-739bbd41d858-000000%40eu-central-1.amazonses.com.