#27904: Add a field check for validators
-------------------------------------+-------------------------------------
Reporter: Adam | Owner: nobody
Chainz |
Type: New | Status: new
feature |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Reading #27884 I thought that a system check could be added to ensure
`Field.validators` is iterable, however it turns out that the refactoring
in #27235 actually made it impossible to instantiate a field with
`validators` not set to an iterable, as `Field.__init__` now calls `list`
on whatever the argument was.
However there is probably still value in a system check that iterates
`validators` and ensures they are all callable, and possibly that they
take one argument.
--
Ticket URL: <https://code.djangoproject.com/ticket/27904>
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/053.316a27d74d572986799df5852e5d60d1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.