In my django project I've created a customized models for User and its manager class.
I named them User (which inherits from AbstractUser
) and UserManager (which inherits from BaseUserManager
). Given that these are the default django's name for those models, is there any problem in that?
I run the following form django shell:
>>>from django.contrib.auth import get_user_model
>>>user = get_user_model()
>>>user.objects
These are the outputs:
<class 'myapp.models.models.User'>
<class 'myapp.models.models.UserManager'>
Apparently no conflicts are shown, so it seems to be all right. I hope some django experts could confirm me I won't have any surprise later on through the development.