Skip to content

Commit ed42261

Browse files
stephhouCopilot
andauthored
Update lung_cancer_screening/questions/migrations/0012_alter_whenyouquitsmokingresponse_value_incentivised.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Steph Housden <167300771+stephhou@users.noreply.github.com>
1 parent 95f4524 commit ed42261

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lung_cancer_screening/questions/migrations/0012_alter_whenyouquitsmokingresponse_value_incentivised.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ class Migration(migrations.Migration):
3232
'abstract': False,
3333
},
3434
),
35+
migrations.AddConstraint(
36+
model_name='incentivised',
37+
constraint=models.UniqueConstraint(fields=('user',), name='questions_incentivised_unique_user'),
38+
),
3539
]

0 commit comments

Comments
 (0)