Ticket #16479: 16479-formset-forms-error_class.diff

File 16479-formset-forms-error_class.diff, 634 bytes (added by Simon Charette, 13 years ago)
  • django/forms/formsets.py

     
    111111        """
    112112        Instantiates and returns the i-th form instance in a formset.
    113113        """
    114         defaults = {'auto_id': self.auto_id, 'prefix': self.add_prefix(i)}
     114        defaults = {
     115            'auto_id': self.auto_id,
     116            'prefix': self.add_prefix(i),
     117            'error_class': self.error_class,
     118        }
    115119        if self.is_bound:
    116120            defaults['data'] = self.data
    117121            defaults['files'] = self.files
Back to Top