mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 06:22:16 +00:00
Rework level list display
This commit is contained in:
@@ -76,7 +76,9 @@ class LevelList(generic.ListView):
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context["page_title"] = "All Training Levels"
|
||||
context["levels"] = models.TrainingLevel.objects.all().order_by('level', 'department')
|
||||
context["ta"] = models.TrainingLevel.objects.get(level=models.TrainingLevel.TA)
|
||||
context["tech"] = models.TrainingLevel.objects.filter(level=models.TrainingLevel.TECHNICIAN).order_by('department')
|
||||
context["sup"] = models.TrainingLevel.objects.filter(level=models.TrainingLevel.SUPERVISOR).order_by('department')
|
||||
return context
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user