Add missing notes field to Certifications

This commit is contained in:
Adam Goldsmith 2022-02-04 17:14:17 -05:00
parent a586688653
commit 81d12f86a9
2 changed files with 2 additions and 0 deletions

View File

@ -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',

View File

@ -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}"