Issue #8260
closedUse get_user_model instead of auth.models.user
Description
mporting and using django.contrib.auth.models.User breaks any apps that use custom user models defined in AUTH_USER_MODEL. To prevent this from happening, the User model should be loaded using django's get_user_model() function.
See https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#referencing-the-user-model for details
Updated by ipanova@redhat.com almost 4 years ago
Added by newswangerd almost 4 years ago
Added by newswangerd almost 4 years ago
Revision 0aaeef4e | View on GitHub
Use get_user_model instead of auth.models.user
closes #8260
Updated by newswangerd almost 4 years ago
- Status changed from NEW to MODIFIED
Applied in changeset 0aaeef4e535170b38d81a644ad56a2a86dd7e7fd.
Updated by pulpbot almost 4 years ago
Added by newswangerd almost 4 years ago
Revision cb3302de | View on GitHub
Use get_user_model instead of auth.models.user
closes #8260
(cherry picked from commit 0aaeef4e535170b38d81a644ad56a2a86dd7e7fd)
Added by newswangerd almost 4 years ago
Revision cb3302de | View on GitHub
Use get_user_model instead of auth.models.user
closes #8260
(cherry picked from commit 0aaeef4e535170b38d81a644ad56a2a86dd7e7fd)
Updated by pulpbot almost 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Use get_user_model instead of auth.models.user
closes #8260