On Nov 19, 12:16 pm, Milan Andric <[EMAIL PROTECTED]> wrote: > On Nov 19, 12:13 pm, RajeshD <[EMAIL PROTECTED]> wrote: > > > > I would like to validate a field if another field is defined. So i > > > have two fields (state and state (international) ) -- one of them > > > needs to be defined. How would i do this with newforms? > > > By adding a clean() method to your form class. See the 3rd cleaning > > method described here: > > >http://www.djangoproject.com/documentation/newforms/#custom-form-and-... > > Ah, override the Form's clean method as opposed to the field's. That > makes sense.
Found a good thread on it, thank you. http://groups.google.com/group/django-users/browse_thread/thread/2ab9463bae7d8320/37fe68ea76416872 -- Milan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---