Update
svn: r6781
This commit is contained in:
parent
cbc4c8fef5
commit
740a97805a
@ -888,8 +888,9 @@ class SameSexFamily(FamilyRule):
|
||||
def broken(self):
|
||||
mother = get_mother(self.db,self.obj)
|
||||
father = get_father(self.db,self.obj)
|
||||
same_sex = (mother.get_gender() == father.get_gender())
|
||||
unknown_sex = (mother.get_gender() == RelLib.Person.UNKNOWN)
|
||||
same_sex = (mother and father and
|
||||
(mother.get_gender() == father.get_gender()))
|
||||
unknown_sex = (mother and mother.get_gender() == RelLib.Person.UNKNOWN)
|
||||
return (same_sex and not unknown_sex)
|
||||
|
||||
def get_message(self):
|
||||
|
Loading…
Reference in New Issue
Block a user