Ticket #16479: 16479-formset-forms-error_class.diff
File 16479-formset-forms-error_class.diff, 634 bytes (added by , 13 years ago) |
---|
-
django/forms/formsets.py
111 111 """ 112 112 Instantiates and returns the i-th form instance in a formset. 113 113 """ 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 } 115 119 if self.is_bound: 116 120 defaults['data'] = self.data 117 121 defaults['files'] = self.files