Opened 12 years ago

Closed 12 years ago

#4974 closed (invalid)

model validator list completely ignored

Reported by: anonymous Owned by: Adrian Holovaty
Component: Validators Version: 0.96
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


when I put this in my model:

code = models.IntegerField(validator_list=[validators.NumberIsInRange(100, 999)])

code is not validated through a newform except that is an integer at all. The validator is never run.
In fact, if I say validator_list=[1,2,3] you might expect an error when it tries to use integers as validators, but nothing happens because it is never walking the list.

Change History (1)

comment:1 Changed 12 years ago by James Bennett

Resolution: invalid
Status: newclosed

Marking invalid because AFAIK this isn't supposed to work at the moment, and there have been discussions about how to specify validation information in models on the dev list which looked somewhat different from the traditional validator_list.

And, yes, validator_list only works with the oldforms system.

Note: See TracTickets for help on using tickets.
Back to Top