i have the following items in my model:
mother_alive = models.IntegerField(choices=YES_NO_CHOICES, blank=True, null=True, default=1)
father_alive = models.IntegerField(choices=YES_NO_CHOICES, blank=True, null=True, default=1)
and I'd like to set up a generated field for them so I'd be able to detect whether the child is an orphan or not. In MySQL i believe it'd look like this:
orphan varchar(101) GENERATED ALWAYS AS (mother_alive+father_alive) VIRTUAL,
I don't know how to change my model to do that...