Re: Django Multiple User Profiles Best Practices

2016-05-05 Thread Sudhanshu Shekhar
Hey, Thanks for the reply. The book was released in March 2015 and I am sure the authors would've known about the custom user models. It has some very good suggestions (For intermediate django devs like me at least), though yeah, this abstract model inheritance idea did seem a little troubling to

Re: Django Multiple User Profiles Best Practices

2016-05-02 Thread Peter of the Norse
> On Apr 6, 2016, at 9:41 PM, Sudhanshu Shekhar wrote: > > Hi, > > I am creating a tutor-student forum using Django. For which I need to have > two different user profiles, one for students and one for teachers. However, > I am unsure about the best way to do this. I am currently following the

Django Multiple User Profiles Best Practices

2016-04-06 Thread Sudhanshu Shekhar
Hi, I am creating a tutor-student forum using Django. For which I need to have two different user profiles, one for students and one for teachers. However, I am unsure about the best way to do this. I am currently following the below approach: class UserProfile: user = models.OneToOneField(Us