Open rocioar opened 4 years 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.
https://docs.djangoproject.com/en/3.0/topics/auth/customizing/#referencing-the-user-model