﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16479	Forms generated from formsets use ErrorList instead of supplied error_class	marcin.tustin@…	Simon Charette	"Using Django 1.3, forms generated from formsets use ErrorList instead of supplied error_class. 

Accordingly, even though a formset is instantiated:

                directors_formset = DirectorsFormset(prefix='directors',
                                                     data=request.POST,
                                                     error_class=SideError)

Forms generated from it use the default ErrorList ul style of error rendering.

The fix is in the first line of FormSet._construct_form, which currently reads:
    defaults = {'auto_id': self.auto_id, 'prefix': self.add_prefix(i)}
(https://code.djangoproject.com/browser/django/trunk/django/forms/formsets.py#L114)

This should be changed to:
        defaults = {'auto_id': self.auto_id, 'prefix': self.add_prefix(i), 'error_class': self.error_class}
Which passes the error_class down to every form instantiated."	Bug	closed	Forms	1.3	Normal	fixed	forms formsets	Ludovic Delaveau	Ready for checkin	1	0	0	0	1	0
