Re: Two profile types with OneToOneField relationship with User

2016-11-26 Thread eltongoci
It seems to work. Thanks On Saturday, November 26, 2016 at 3:36:42 PM UTC+1, ludovic coues wrote: > > Have you tried `getattr(u, 'individualprofile', None)` ? > > 2016-11-26 15:17 GMT+01:00 >: > > Hi guys > > > > I'm on Django 1.10, and as described shortly here: > https://dpaste.de/Bgao, I

Two profile types with OneToOneField relationship with User

2016-11-26 Thread eltongoci
Hi guys I'm on Django 1.10, and as described shortly here: https://dpaste.de/Bgao, I have created an abstract user profile which is tied to Django's User model with OneToOneField relationship. So I have AbstractProfile, and then there are IndividualProfile and BusinessProfile, each of which inh