I am using Django SVN. How to validate tthe form which consists of two CheckboxField fields. The rule is: the form is validated if ANY of those fields is checked. My manipulator is:
from django import forms class TestManipulator(forms.Manipulator): def __init__(self): self.fields = ( forms.CheckboxField(field_name='first'), forms.CheckboxField(field_name='second'), ) The problem is, I have no access to validators parameter: forms.CheckboxField(field_name='first', validators=[myvalidator]) because (as I found in django/forms/__init__.py file) the constructor has only 'field_name' and 'checked_by_default'. I know that I can use CheckboxSelectMultipleField, e.g. forms.CheckboxSelectMultipleField( field_name='options', choices=[('1', '2'), ('first', 'second')], validator_list=[validators.isNotEmpty]), ) but generated html code is not acceptable for me, because I do not want to have <ul>...</ul> list. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---