Skip to content

Commit

Permalink
Merge pull request #28 from openimis/hotfix/undo_insuree_protect2
Browse files Browse the repository at this point in the history
Undo insuree <-> family mutual dep protect
  • Loading branch information
edarchis committed Nov 25, 2021
2 parents ddcc451 + 2607edf commit 4e12d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insuree/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Family(core_models.VersionedModel, core_models.ExtendableModel):
uuid = models.CharField(db_column='FamilyUUID',
max_length=36, default=uuid.uuid4, unique=True)
head_insuree = models.OneToOneField(
'Insuree', models.PROTECT, db_column='InsureeID', null=False,
'Insuree', models.DO_NOTHING, db_column='InsureeID', null=False,
related_name='head_of')
location = models.ForeignKey(
location_models.Location,
Expand Down

0 comments on commit 4e12d92

Please sign in to comment.