CharField's widget_attrs should return an empty dict rather than None
|Reported by:||Gabriel Grant||Owned by:||Gabriel Grant|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
widget is not a
PasswordInput instance, no return value is specified.
Returning None can break things when a dict is expected. Theoretically, it should probably call the superclass' widget_attrs and update the dict with its own values (if the conditions are met). In practice, I'm not sure the super call really matters.