Skip to content

Commit

Permalink
Fix to merge function
Browse files Browse the repository at this point in the history
Will absorb gender of 'other' when self has none.
  • Loading branch information
ajparsons committed Jan 30, 2018
1 parent a8943ae commit c718cf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions popolo_data/models.py
Expand Up @@ -142,6 +142,9 @@ def absorb(self,other):
for n in other.other_names:
if n["name"] not in our_names:
self.other_names.append(n)

if not self.gender and other.gender:
self.gender = other.gender

class Organization(PopoloObject):

Expand Down

0 comments on commit c718cf5

Please sign in to comment.