Change certification definition naming scheme and define ordering

This commit is contained in:
Adam Goldsmith 2021-04-29 14:01:07 -04:00
parent 819c32b915
commit c817ea8532

View File

@ -44,11 +44,12 @@ class CertificationDefinition(models.Model):
department = models.CharField(db_column='Department', max_length=255, blank=True, null=True)
def __str__(self):
return f"{self.department}: {self.certification_name}"
return f"{self.certification_name} <{self.department}>"
class Meta:
managed = False
db_table = 'Certification Definitions'
ordering = ('certification_name', 'department')
class Certification(models.Model):