diff --git a/training/templates/level_list.html b/training/templates/level_list.html index df7e44ce..611b2a62 100644 --- a/training/templates/level_list.html +++ b/training/templates/level_list.html @@ -3,60 +3,6 @@ {% load markdown_tags %} {% load get_supervisor from tags %} -{% block css %} - -{% endblock %} - {% block content %} - +{% for level in object_list %} +
+
{{level}}
+
{{level.description|markdown}}
+
+{% endfor %} {% endblock %} diff --git a/training/views.py b/training/views.py index 94587b74..968f3b6a 100644 --- a/training/views.py +++ b/training/views.py @@ -85,9 +85,6 @@ class LevelList(generic.ListView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context["page_title"] = "All Training Levels" - 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