mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-30 03:42:15 +00:00
Fancy training level list layout
This commit is contained in:
@@ -61,7 +61,7 @@ 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()
|
||||
context["levels"] = models.TrainingLevel.objects.all().order_by('level','department')
|
||||
return context
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user