﻿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
28095	Document Widget.build_attrs() signature change in Django 1.11	Melvyn Sopacua	brian houston morrow	"While build_attrs is undocumented (not sure why, since many widgets override render() and make use of build_attrs) and changed it's method signature in 1.11 by removing kwargs.

This isn't mentioned in the release notes.

A compatibility method could look something like this:


{{{
    def build_attrs(self, extra_attrs=None, **kwargs):
        # Django 1.11 changed method signature by removing kwargs
        if extra_attrs:
            kwargs.update(extra_attrs)
        return super().build_attrs(extra_attrs=kwargs)

}}}

An update of the release notes would be very welcome.
"	Cleanup/optimization	closed	Documentation	1.11	Normal	fixed			Accepted	1	0	0	1	1	0
