rocioar / flake8-django

A flake8 plugin to detect bad practices on Django projects.
GNU General Public License v3.0
180 stars 34 forks source link

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

Open rocioar opened 4 years ago

rocioar commented 4 years ago

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

adamchainz commented 1 year ago

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.