On Jan 30, 8:05 am, "Martin Winkler" <[EMAIL PROTECTED]> wrote:
> I usually have my validators in the model (e.g.
> django.core.validators.RequiredIfOtherFieldNotGiven appended to a
> field's validator_list), but this is not honored by the newforms library
> when I create a form based on the model.
I ran into the same issue recently, and I got to thinking... Are
validators going to go away when manipulators do?
It seems that the answer is yes, validators are no longer favored, and
that validation-aware models is the ideal solution. But there is
little documentation that I can find on progress in this area. Is this
not an API changing issue that should be targetted for 1.0?
I am definitely +1 on having a DRY way to use model level validations
with form_for_model / form_for_instance.
-Noah
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---