Change certification definition naming scheme and define ordering
This commit is contained in:
parent
819c32b915
commit
c817ea8532
@ -44,11 +44,12 @@ class CertificationDefinition(models.Model):
|
|||||||
department = models.CharField(db_column='Department', max_length=255, blank=True, null=True)
|
department = models.CharField(db_column='Department', max_length=255, blank=True, null=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.department}: {self.certification_name}"
|
return f"{self.certification_name} <{self.department}>"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
managed = False
|
||||||
db_table = 'Certification Definitions'
|
db_table = 'Certification Definitions'
|
||||||
|
ordering = ('certification_name', 'department')
|
||||||
|
|
||||||
|
|
||||||
class Certification(models.Model):
|
class Certification(models.Model):
|
||||||
|
Loading…
Reference in New Issue
Block a user