November 2015
Beginner to intermediate
840 pages
26h 30m
English
UserWhen we interacted with the auth’s User model, we found that the manager has been changed to make interacting with passwords easier. Unfortunately, because we’ve created our own custom User, we no longer have access to the UserManager provided by auth.
Creating custom managers is the topic of Chapter 24, and so we’re jumping the gun a little bit in this section. However, we don’t need full understanding of managers in this section, because the changes in this section are really easy. The auth’s UserManager inherits from BaseUserManager and defines the create_user() and create_superuser() methods we want to use. Therefore, we can create a class that inherits from BaseUserManager and define our own create_user() ...
Read now
Unlock full access