Skip to content

Commit

Permalink
allow longer person id_types
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Dec 14, 2023
1 parent 4ed1557 commit 1b29781
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions hub/migrations/0060_alter_person_id_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.5 on 2023-12-14 15:56

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("hub", "0059_person_end_date_person_start_date"),
]

operations = [
migrations.AlterField(
model_name="person",
name="id_type",
field=models.CharField(max_length=30),
),
]
2 changes: 1 addition & 1 deletion hub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ class AreaData(CommonData):
class Person(models.Model):
person_type = models.CharField(max_length=10)
external_id = models.CharField(db_index=True, max_length=20)
id_type = models.CharField(max_length=10)
id_type = models.CharField(max_length=30)
name = models.CharField(max_length=200)
area = models.ForeignKey(Area, on_delete=models.CASCADE)
photo = models.ImageField(null=True, upload_to="person")
Expand Down

0 comments on commit 1b29781

Please sign in to comment.