paperwork: Disallow empty certification definition names
This commit is contained in:
parent
250c96f1c2
commit
58de45134a
@ -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,
|
||||||
|
),
|
||||||
|
]
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user