writing a manager for a custom user model {djangodoc}

  • https://docs.djangoproject.com/en/4.2/topics/auth/customizing/#writing-a-manager-for-a-custom-user-model