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:
romjerome 2017-01-14 09:55:59 +01:00
parent dedb5122cb
commit 0633930667
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)