mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 08:22:15 +00:00
Refactor is_supervisor
This commit is contained in:
@@ -29,6 +29,7 @@ class TraineeDetail(views.ProfileDetail, ModalURLMixin):
|
||||
context = super(TraineeDetail, self).get_context_data(**kwargs)
|
||||
context["page_title"] = "{}'s Training Record".format(self.object.first_name + " " + self.object.last_name)
|
||||
# TODO Filter this to levels the user has
|
||||
# context["completed_levels"] =
|
||||
context["levels"] = models.TrainingLevel.objects.all()
|
||||
context["categories"] = models.TrainingCategory.objects.all().prefetch_related('items')
|
||||
choices = models.TrainingItemQualification.CHOICES
|
||||
|
||||
Reference in New Issue
Block a user