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
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,
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
3 matches
Mail list logo