mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Fixed #16479 - Forms generated from formsets use ErrorList instead of supplied error_class
Patch with tests from charettes, updated.
This commit is contained in:
committed by
Luke Plant
parent
cc83a4af0c
commit
7a44dc555a
@@ -123,7 +123,11 @@ class BaseFormSet(object):
|
||||
"""
|
||||
Instantiates and returns the i-th form instance in a formset.
|
||||
"""
|
||||
defaults = {'auto_id': self.auto_id, 'prefix': self.add_prefix(i)}
|
||||
defaults = {
|
||||
'auto_id': self.auto_id,
|
||||
'prefix': self.add_prefix(i),
|
||||
'error_class': self.error_class,
|
||||
}
|
||||
if self.is_bound:
|
||||
defaults['data'] = self.data
|
||||
defaults['files'] = self.files
|
||||
|
||||
Reference in New Issue
Block a user