Re: MultiValueField required=False problem

2009-09-30 Thread eka
Also found in the __init__ of MultiValueField: def __init__(self, fields=(), *args, **kwargs): super(MultiValueField, self).__init__(*args, **kwargs) # Set 'required' to False on the individual fields, because the # required validation will be handled by MultiValueField, n

Re: MultiValueField required=False problem

2009-09-30 Thread eka
Update: If I pass required=False to the field that belongs to a MultiValueFields it doesn't take that into account since only sees for the required in the MultiValueField instance. As I see in the MultiValueField.clean method forms/fields.py line 801 of django 1.1 stable if self.required and f

MultiValueField required=False problem

2009-09-30 Thread eka
Hi All. When using MultiValueField if I set required=False in my field Any of the form fields can be empty, but if required is default to True, None of the field can be empty or blank... isn't there a middle ground? In the case where I'm using 2 fields and I wan't only the first to allow blank v