[Django] #34245: Change standart User model in BaseUserCreationForm.Meta and UserChangeForm.Meta in django.contrib.auth.forms to get_user_model()

22 views
Skip to first unread message

Django

unread,
Jan 8, 2023, 7:57:01 AM1/8/23
to django-...@googlegroups.com
#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.

Django

unread,
Jan 8, 2023, 11:23:35 PM1/8/23
to django-...@googlegroups.com
#34245: Change standart User model in BaseUserCreationForm.Meta and
UserChangeForm.Meta in django.contrib.auth.forms to get_user_model()
-------------------------------------+-------------------------------------
Reporter: Nikolay Fedorov | Owner: nobody
Type: New feature | Status: closed
Component: contrib.auth | Version: 4.1
Severity: Normal | Resolution: duplicate
Keywords: user, auth, | Triage Stage:
usercreationform | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* type: Cleanup/optimization => New feature
* resolution: => duplicate


Comment:

Duplicate of #19353.

--
Ticket URL: <https://code.djangoproject.com/ticket/34245#comment:1>

Reply all
Reply to author
Forward
0 new messages