Skip to content

Commit 68216b4

Browse files
committed
add extra field to store skin change details if "other" selected
1 parent 8cdb1f3 commit 68216b4

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.6 on 2025-09-29 09:29
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('participants', '0028_add_skin_change_subtypes'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='symptom',
15+
name='symptom_sub_type_details',
16+
field=models.CharField(blank=True),
17+
),
18+
]

manage_breast_screening/participants/models/symptom.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class Symptom(BaseModel):
4646
symptom_sub_type = models.ForeignKey(
4747
SymptomSubType, on_delete=models.PROTECT, null=True, blank=True
4848
)
49+
symptom_sub_type_details = models.CharField(blank=True, null=False)
50+
4951
appointment = models.ForeignKey(Appointment, on_delete=models.PROTECT)
5052
reported_at = models.DateField()
5153

0 commit comments

Comments
 (0)