Thank you very much Sir, that worked!
Happy New Year, all the best!
Branko
понедељак, 02. јануар 2017. 13.16.20 UTC+1, Daniel Roseman је написао/ла:
>
> This isn't a custom user model, it's a related model - what would normally
> be called a user profile.
>
> Regardless, there *is* a reference
This isn't a custom user model, it's a related model - what would normally be
called a user profile.
Regardless, there *is* a reference from User to CustomUser, via the one-to-one
relation: you can just do `user.customuser`.
--
DR.
--
You received this message because you are subscribed to
I've created custom user model which has OneToOneField which relates to
original auth User model. In my template, I have to access data from custom
model, but I use user.is_authenticated() and original model doesn't have
reference to custom model. I'm not sure if I'm checking login incorrectly
3 matches
Mail list logo