Opened 8 years ago

Closed 8 years ago

#4974 closed (invalid)

model validator list completely ignored

Reported by: anonymous Owned by: adrian
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: UI/UX:


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 8 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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