Skip to content

Commit

Permalink
update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr KOZAREV committed Oct 15, 2024
1 parent 5cabb0a commit f08e79a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.23 on 2024-10-08 10:05
# Generated by Django 3.2.23 on 2024-10-15 13:06

from django.db import migrations, models

Expand All @@ -13,12 +13,17 @@ class Migration(migrations.Migration):
model_name="access",
name="application_external_id",
field=models.CharField(
help_text="REMS application external ID.", max_length=200, null=True
blank=True,
help_text="REMS application external ID.",
max_length=200,
null=True,
),
),
migrations.AddField(
model_name="access",
name="application_id",
field=models.IntegerField(help_text="REMS application ID.", null=True),
field=models.IntegerField(
blank=True, help_text="REMS application ID.", null=True
),
),
]
6 changes: 4 additions & 2 deletions core/models/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,12 @@ def clean(self):
help_text="Was the entry generated automatically, e.g. by REMS?",
)

application_id = models.IntegerField(null=True, help_text="REMS application ID.")
application_id = models.IntegerField(
blank=True, null=True, help_text="REMS application ID."
)

application_external_id = models.CharField(
blank=False,
blank=True,
null=True,
max_length=200,
help_text="REMS application external ID.",
Expand Down

0 comments on commit f08e79a

Please sign in to comment.