9899: tweak adjustement where one could switch locations for both parents
this could be a specific case, so for more security, use hardcoded string
This commit is contained in:
parent
dedb5122cb
commit
0633930667
@ -411,7 +411,7 @@ def parents_labels(db, family, glocale):
|
||||
if father.gender == 0:
|
||||
rel_father = rel_mother
|
||||
if mother.gender == 1:
|
||||
rel_mother = rel_father
|
||||
rel_mother = _('Father')
|
||||
else:
|
||||
rc = get_relationship_calculator(True, glocale)
|
||||
rel_father = rc.get_one_relationship(db, mother, father)
|
||||
|
@ -703,7 +703,7 @@ def parents_labels(db, family):
|
||||
if father.gender == 0:
|
||||
rel_father = rel_mother
|
||||
if mother.gender == 1:
|
||||
rel_mother = rel_father
|
||||
rel_mother = _('Father')
|
||||
else:
|
||||
rc = RelationshipCalculator()
|
||||
rel_father = rc.get_one_relationship(db, mother, father)
|
||||
|
Loading…
Reference in New Issue
Block a user