Fixed Form field widget attrs being overwritten by forms.render_field

`forms.render_field` function is using `getattr` to read `widget.attrs` attributes. The problem is that `widget.attrs` is a dictionary and the attributes are stored as dictionary keys, not as object attributes.