Add missing notes
field to Certifications
This commit is contained in:
parent
a586688653
commit
81d12f86a9
@ -99,6 +99,7 @@ class Migration(migrations.Migration):
|
|||||||
('shop_lead_notified', models.DateTimeField(blank=True, db_column='Shop Lead Notified', null=True)),
|
('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')),
|
('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')),
|
('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={
|
options={
|
||||||
'db_table': 'Certifications',
|
'db_table': 'Certifications',
|
||||||
|
@ -58,6 +58,7 @@ class Certification(models.Model):
|
|||||||
certified_by = models.CharField(db_column='Certified_By', max_length=255, blank=True, null=True)
|
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)
|
date = models.DateField(db_column='Date', blank=True, null=True)
|
||||||
shop_lead_notified = models.DateTimeField(db_column='Shop Lead Notified', 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):
|
def __str__(self):
|
||||||
return f"{self.name} - {self.certification_version}"
|
return f"{self.name} - {self.certification_version}"
|
||||||
|
Loading…
Reference in New Issue
Block a user