Skip to content

Commit

Permalink
Merge pull request #2720 from DraKen0009/updating-gender-max-lenght
Browse files Browse the repository at this point in the history
Updated the max length of gender field to 35 in patient model
  • Loading branch information
vigneshhari authored Jan 7, 2025
2 parents b80ab51 + ceb876e commit 3603b49
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions care/emr/migrations/0002_alter_patient_gender.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.3 on 2025-01-07 18:27

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('emr', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='patient',
name='gender',
field=models.CharField(default='', max_length=35),
),
]
2 changes: 1 addition & 1 deletion care/emr/models/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class Patient(EMRBaseModel):
name = models.CharField(max_length=200, default="")
gender = models.CharField(max_length=10, default="")
gender = models.CharField(max_length=35, default="")

phone_number = models.CharField(
max_length=14, validators=[mobile_or_landline_number_validator], default=""
Expand Down

0 comments on commit 3603b49

Please sign in to comment.