#34245: Change standart User model in BaseUserCreationForm.Meta and
UserChangeForm.Meta in django.contrib.auth.forms to get_user_model()
-------------------------------------+-------------------------------------
Reporter: swayll | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: | Version: 4.1
contrib.auth | Keywords: user, auth,
Severity: Normal | usercreationform
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Please Change standart User model in BaseUserCreationForm.Meta in
django.contrib.auth.forms to get_user_model()
{{{
class BaseUserCreationForm(forms.ModelForm):
class Meta:
model = get_user_model()
fields = ("username",)
field_classes = {"username": UsernameField}
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34245>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.