Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#34245 closed New feature (duplicate)

Change User model in BaseUserCreationForm/UserChangeForm.Meta to get_user_model().

Reported by: Nikolay Fedorov Owned by: nobody
Component: contrib.auth Version: 4.1
Severity: Normal Keywords: user, auth, usercreationform
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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}

Change History (2)

comment:1 by Mariusz Felisiak, 17 months ago

Resolution: duplicate
Status: newclosed
Type: Cleanup/optimizationNew feature

Duplicate of #19353.

comment:2 by Mariusz Felisiak, 17 months ago

Summary: Change standart User model in BaseUserCreationForm.Meta and UserChangeForm.Meta in django.contrib.auth.forms to get_user_model()Change User model in BaseUserCreationForm/UserChangeForm.Meta to get_user_model().
Note: See TracTickets for help on using tickets.
Back to Top