I have a form that requires more complex validation logic than is
provided through the default form.is_valid implementation.

As an example, I have a form with properties A and B.  One of A or B
must be set.  If neither is set, a validation error should be raised.
Can someone show me an example of overriding is_valid()?  Ideally, I
would want the validation error associated not with an individual form
field, but with the entire form.

Also, this kind of "business logic" probably belongs in the model
itself.  Judging from previous threads, it looks like model validation
is a work in progress.  Is it ready in 1.0?  What is the suggested
approach for what I want to accomplish?

Thanks,
Nate

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to