Re: multiplate table inheritance subclass with extra OneToOneField relationship to parent class

2020-07-20 Thread Brian Maissy
I'm still using the workaround I mentioned above -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this

multiplate table inheritance subclass with extra OneToOneField relationship to parent class

2019-10-17 Thread Brian Maissy
I have a model which essentially boils down to this: class Person(models.Model): name = models.TextField() class MarriedMan(Person): wife = models.OneToOneField(Person, on_delete=models.CASCADE, related_name='husband') But when I try to make the

Multiple table inheritance subclass with an additional OneToOneField relationship to the parent class

2019-10-17 Thread Brian Maissy
I have a model which in essence boils down to this: class Person(models.Model): name = models.TextField() class MarriedMan(Person): wife = models.OneToOneField(Person, on_delete=models.CASCADE, related_name='husband') But when I try to generate the