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 19077,UserAdmin.add_view should handle USERNAME_FIELD on custom User models,gwahl@…,nobody,"I have a custom user model whose `USERNAME_FIELD` is `email`. The UserAdmin class provided by Django should work, once the the fieldsets and form properties are overridden. However, `UserAdmin.add_view` assumes there is a field called `username` on the user model, which is not true any more with custom users. It should use whatever field is defined in `USERNAME_FIELD`. patch to come.",Uncategorized,closed,Documentation,dev,Release blocker,fixed,,,Ready for checkin,1,0,0,1,0,0