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

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

2020-07-19 Thread shubham vashisht
Did you find any solution? On Friday, October 18, 2019 at 2:12:21 AM UTC+5:30, Brian Maissy wrote: > > I have a model which essentially boils down to this: > > class Person(models.Model): > name = models.TextField() > > > class MarriedMan(Person): > wife = models.OneToOneField(Person,

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