There's definitely a conflict between
spouses = models.Relationship('Person',rel_type='SPOUSE',related_name='families')
and
children = models.Relationship('Person',rel_type='CHILD',related_name='families')
Setting related_name
signifies that you want model instances on the other end of the relationship to be accessed by that name. Since both lines are pointing to Person
, every Person instance would need to somehow figure out if the families
relationship field refers to rels of type 'SPOUSE' or 'CHILD'.
I'm not sure about the evidence warning, though. If the models are working how you expect, I wouldn't worry about it.