Jack Orenstein wrote:
> On Mar 29, 2009, at 9:35 AM, Matthew Somerville wrote:

>> For more information, see
>> http://docs.djangoproject.com/en/dev/ref/forms/validation/
> 
> Thanks, that's really useful to know about. This works for most of  
> the additional validation I need to do, but doesn't fit so well for  
> the cross-field validation, (e.g. password and confirm_password  
> fields match). Or can I do that by overriding Form.is_valid?

 From the page I provided a link to: "* The Form subclass’s clean() 
method. This method can perform any validation that requires access to 
multiple fields from the form at once. This is where you might put in 
things to check that if field A is supplied, field B must contain a 
valid e-mail address and the like."

ATB,
Matthew

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to