Project

Profile

Help

Issue #8260

Use get_user_model instead of auth.models.user

Added by ipanova@redhat.com 8 months ago. Updated 8 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
GalaxyNG
Sprint:
Sprint 90
Quarter:

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

Associated revisions

Revision 0aaeef4e View on GitHub
Added by newswangerd 8 months ago

Use get_user_model instead of auth.models.user

closes #8260

Revision 0aaeef4e View on GitHub
Added by newswangerd 8 months ago

Use get_user_model instead of auth.models.user

closes #8260

Revision cb3302de View on GitHub
Added by newswangerd 8 months ago

Use get_user_model instead of auth.models.user

closes #8260

(cherry picked from commit 0aaeef4e535170b38d81a644ad56a2a86dd7e7fd)

Revision cb3302de View on GitHub
Added by newswangerd 8 months ago

Use get_user_model instead of auth.models.user

closes #8260

(cherry picked from commit 0aaeef4e535170b38d81a644ad56a2a86dd7e7fd)

History

#1 Updated by ipanova@redhat.com 8 months ago

  • Sprint/Milestone set to 2.3.1

#3 Updated by newswangerd 8 months ago

  • Status changed from NEW to MODIFIED

#5 Updated by pulpbot 8 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#6 Updated by ipanova@redhat.com 8 months ago

  • Tags GalaxyNG added

#7 Updated by ipanova@redhat.com 8 months ago

  • Sprint set to Sprint 90

Please register to edit this issue

Also available in: Atom PDF