Glossary: Django Beyond the Basics
get_user_model()
A function that returns the project's user model. Use it instead of importing `User` directly in a project with a custom user model.
Glossary: Django Beyond the Basics
A function that returns the project's user model. Use it instead of importing `User` directly in a project with a custom user model.