I agree with referential integrity but sometimes this way of deleting
records can mess datas also.
A simple example :
Class Team(meta.Model):
....
Class Family(meta.Model):
....
Class Person(meta.Model):
family = meta.ForeignKey(Family, null = False)
team = meta.ForeignKey(Team, null = True, blank = True)
I think that :
- if I delete a familly object, all related persons must be delete
because of the null = false statement,
- but if I delete a team, all Persons should stay because they may be
belonging to a family and that null = True.
Am I misunderstanding something ??