Ticket #3788: fields_multivaluefield.patch
File fields_multivaluefield.patch, 513 bytes (added by , 18 years ago) |
---|
-
fields.py
455 455 for i, field in enumerate(self.fields): 456 456 try: 457 457 field_value = value[i] 458 except KeyError:458 except IndexError: 459 459 field_value = None 460 460 if self.required and field_value in EMPTY_VALUES: 461 461 raise ValidationError(gettext(u'This field is required.'))