flake8-django icon indicating copy to clipboard operation
flake8-django copied to clipboard

Check to ensure User model is referenced using the setting

Open rocioar opened this issue 5 years ago • 1 comments

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

rocioar avatar May 24 '20 17:05 rocioar

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.

adamchainz avatar Feb 10 '23 13:02 adamchainz