Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check to ensure User model is referenced using the setting #72

Open
rocioar opened this issue May 24, 2020 · 1 comment
Open

Check to ensure User model is referenced using the setting #72

rocioar opened this issue May 24, 2020 · 1 comment

Comments

@rocioar
Copy link
Owner

rocioar commented May 24, 2020

https://docs.djangoproject.com/en/3.0/topics/auth/customizing/#referencing-the-user-model

@adamchainz
Copy link

One thing often missed in the linked docs is that this advice really only applies to reusable apps (third-party packages): https://adamj.eu/tech/2022/03/27/you-probably-dont-need-djangos-get-user-model/ . I'd hope such a check would be off-by-default, so it doesn't affect the 99% of django code that lives in a project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants