Open dino8890 opened 2 years ago
I use a custom user model and always the django primitive get_user_model()
it works as it is with the current documentation, anyway if you've been confused I believe that it's time for a PR! thank you indeed
Yes, that approach works perfectly, but reading documentation I was under the impression that you can somehow specify profile object without having to subclass User
model, e.g. by using specific related_name
in OneToOneField
or configure it in settings.py
like you can AUTH_USER_MODEL
.
It is not a huge issue, but it is better to minimize confusion anyway. Give me a day or two and I'll get back to you with a patch.
Django profile objects refers to objects that are typically related to the
User
object usingOneToOneField
and store extra information about user. The documentation states:However, this is not the case and it confused the hell out of me trying to get it to work. This excerpt from authentication backend method handles attribute updates and it does not appear to look for profile object:
If this is indeed true, let me know and I will send a PR with updated description.