Ticket #13342: fields.patch

File fields.patch, 613 bytes (added by krejcik, 15 years ago)
  • django/forms/fields.py

     
    770770                field_value = value[i]
    771771            except IndexError:
    772772                field_value = None
    773             if self.required and field_value in validators.EMPTY_VALUES:
     773            if field.required and field_value in validators.EMPTY_VALUES:
    774774                raise ValidationError(self.error_messages['required'])
    775775            try:
    776776                clean_data.append(field.clean(field_value))
Back to Top