ManyToMany without through table

2016-11-18 Thread 'kgardenia42' via Django users
Lets say I have a User who I want to allow to have many different UserProfile objects (for multi-tenancy). class User(models.Model): # other user fields ... profiles = models.ManyToManyField('UserProfile', related_name='profiles', blank=True, null=True) class UserProfile(models.Model)

ManyToMany without through table

2016-11-18 Thread 'kgardenia42' via Django users
Lets say I have a User who I want to allow to have many different UserProfile objects (for multi-tenancy). class User(models.Model): # other user fields ... profiles = models.ManyToManyField('UserProfile', related_name='profiles', blank=True, null=True) class User