From 81d12f86a9170a781c7631d5a14566b2564d87df Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 4 Feb 2022 17:14:17 -0500 Subject: [PATCH] Add missing `notes` field to Certifications --- paperwork/migrations/0001_initial.py | 1 + paperwork/models.py | 1 + 2 files changed, 2 insertions(+) diff --git a/paperwork/migrations/0001_initial.py b/paperwork/migrations/0001_initial.py index 72ecdbf..ee67f2e 100644 --- a/paperwork/migrations/0001_initial.py +++ b/paperwork/migrations/0001_initial.py @@ -99,6 +99,7 @@ class Migration(migrations.Migration): ('shop_lead_notified', models.DateTimeField(blank=True, db_column='Shop Lead Notified', null=True)), ('certification', models.ForeignKey(db_column='Certification', on_delete=django.db.models.deletion.PROTECT, to='paperwork.certificationdefinition')), ('member', models.ForeignKey(blank=True, db_column='uid', db_constraint=False, null=True, on_delete=django.db.models.deletion.PROTECT, to='membershipworks.member')), + ('notes', models.CharField(blank=True, db_column='Notes', max_length=255, null=True)), ], options={ 'db_table': 'Certifications', diff --git a/paperwork/models.py b/paperwork/models.py index 1c25e8b..12202e2 100644 --- a/paperwork/models.py +++ b/paperwork/models.py @@ -58,6 +58,7 @@ class Certification(models.Model): certified_by = models.CharField(db_column='Certified_By', max_length=255, blank=True, null=True) date = models.DateField(db_column='Date', blank=True, null=True) shop_lead_notified = models.DateTimeField(db_column='Shop Lead Notified', blank=True, null=True) + notes = models.CharField(db_column='Notes', max_length=255, blank=True, null=True) def __str__(self): return f"{self.name} - {self.certification_version}"