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