mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-22 16:02:16 +00:00
Revamp level list for better grouping
This commit is contained in:
@@ -152,6 +152,9 @@ class TrainingLevel(models.Model, RevisionMixin):
|
||||
prerequisite_levels = models.ManyToManyField('self', related_name='prerequisites', symmetrical=False, blank=True)
|
||||
icon = models.CharField(null=True, blank=True, max_length=20)
|
||||
|
||||
class Meta:
|
||||
ordering = ["department", "level"]
|
||||
|
||||
@property
|
||||
def department_colour(self):
|
||||
if self.department == self.SOUND:
|
||||
|
||||
Reference in New Issue
Block a user