#4974: model validator list completely ignored
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: adrian
Status: new | Component: Validators
Version: 0.96 | Keywords:
Stage: Unreviewed | Has_patch: 0
-----------------------+----------------------------------------------------
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/4974>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---