﻿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
3810	Widgets should take a copy of the attrs dict	Chris Beaven	Adrian Holovaty	"Currently, `Widget.__init__` looks like:
{{{
#!python
    def __init__(self, attrs=None):
        self.attrs = attrs or {}
}}}

Which is a problem because if you pass an `attrs` dict to the Widget it could get modified in place. For example, in `Field.__init__`
{{{
#!python
    # Hook into self.widget_attrs() for any Field-specific HTML attributes.
    extra_attrs = self.widget_attrs(widget)
    if extra_attrs:
        widget.attrs.update(extra_attrs)
}}}

Although a slight change in logic, it would probably make more sense if `Widget` copied `attrs` (if its a dict)"		closed	Forms	dev		fixed			Accepted	0	0	0	0	0	0
