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 15214 CharField's widget_attrs should return an empty dict rather than None Gabriel Grant Gabriel Grant "See http://code.djangoproject.com/browser/django/trunk/django/forms/fields.py#L217 When `self.max_length` is `None` or `widget` is not a `TextInput` or `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." Cleanup/optimization closed Forms dev Normal duplicate Accepted 0 0 0 0 0 0