﻿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
20188	[contrib.auth.admin] We need to use the AUTH_USER_MODEL defined in the settings form admin form	anonymous	nobody	"As you can see here : https://github.com/django/django/blob/master/django/contrib/auth/forms.py#L89

We are using ``django.contrib.auth.models.User`` so it doesn't work when we register our Django custom User model with UserAdmin.

We should load the User from the settings.AUTH_USER_MODEL.

How to reproduce ?

Register your custom user with UserAdmin and try to add a user from the admin.

You will get an error because of this: https://github.com/django/django/blob/master/django/contrib/auth/forms.py#L97"	Bug	closed	contrib.auth	1.5	Normal	invalid		bmispelon@…	Unreviewed	0	0	0	0	0	0
