Benedict,

You add a clean_XXX method to your form class,
where XXX corresponds to the field name you wish
to validate.

In your clean_XXX  method, you return
self.clean_data['XXX'] if your data validates,
otherwise raise a ValidationError exception.

I just posted a similar response on this group with
an example yesterday:  http://tinyurl.com/2w9q2h

--
Jeff Bauer
Rubicon, Inc.


--~--~---------~--~----~------------~-------~--~----~
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