6👍
✅
The model
attribute of a model manager is just a reference to the model class the manager has been created for. In this case it refers to whatever user model that will use this manager.
0👍
Here self.model is refering to the model that you are using (kind of Custom User).And the method inside BaseUserManager.normalize_email is used to convert the domain of email in lowercase. For Example if you have email like "Amanmishra1321@GMAil.com", then it will convert the email into "Amanmishra1321@gmail.com"
- [Django]-Django simple form "object has no attribute 'is_hidden'"
- [Django]-Why choice field displays keys instead of values in django queryset?
Source:stackexchange.com