Re: Showing user's data on page

2017-01-02 Thread Branko Zivanovic
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

Showing user's data on page

2017-01-02 Thread 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 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

Showing user's data on page

2017-01-02 Thread Branko Zivanovic
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