Opened 8 years ago
Closed 8 years ago
#27904 closed New feature (fixed)
Add a system check that Field.validators are callable
Description ¶
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.
Change History (4)
comment:1 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
Summary: | Add a field check for validators → Add a system check for Field.validators |
---|
comment:3 by , 8 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
Summary: | Add a system check for Field.validators → Add a system check that Field.validators are callable |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
PR with comments for improvement.