paperwork: Disallow empty certification definition names

This commit is contained in:
Adam Goldsmith 2023-04-10 13:41:17 -04:00
parent 250c96f1c2
commit 58de45134a
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
# Generated by Django 4.2 on 2023-04-10 17:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("paperwork", "0012_waiveraudit_certificationaudit"),
]
operations = [
migrations.AlterField(
model_name="certificationdefinition",
name="certification_name",
field=models.CharField(
db_column="Certification Name", default="", max_length=255
),
preserve_default=False,
),
]

View File

@ -107,7 +107,7 @@ class CertificationDefinition(models.Model):
db_column="Certification Identifier", primary_key=True db_column="Certification Identifier", primary_key=True
) )
certification_name = models.CharField( certification_name = models.CharField(
db_column="Certification Name", max_length=255, blank=True, null=True db_column="Certification Name", max_length=255
) )
department = models.ForeignKey(Department, models.PROTECT) department = models.ForeignKey(Department, models.PROTECT)