﻿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
28608	Allow UserCreationForm and UserChangeForm to work with custom user models	Rômulo Collopy	shangdahao	"{{{
class UserChangeForm(forms.ModelForm):
    # ...
    class Meta:
        model = User
}}}

and 

{{{
class UserCreationForm(forms.ModelForm):
    class Meta:
        model = User
}}}

could use `UserModel` instead of `User`. It is already defined in https://github.com/django/django/blob/01c6a3e227b645e8dea97e9befecd23d1d3b8581/django/contrib/auth/forms.py#L20 and is used in other forms of the same package.

This would allow Django Registration and other packages that use these forms to work out of the box. And it would allow using them with no need to rewitte as specified at https://docs.djangoproject.com/en/1.11/topics/auth/customizing/#custom-users-and-the-built-in-auth-forms"	Cleanup/optimization	new	contrib.auth	dev	Normal		user, custom user, auth	Lemuel Formacil Ülgen Sarıkavak	Accepted	0	0	0	0	0	0
