mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-26 09:52:16 +00:00
Fix #524 500 Error when viewing qualification list for items nobody is qualified in
This commit is contained in:
@@ -265,5 +265,5 @@ class ItemQualifications(generic.ListView):
|
|||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
context["page_title"] = f"People Qualified In {self.object_list[0].item}"
|
context["page_title"] = f"People Qualified In {models.TrainingItem.objects.get(pk=self.kwargs['pk'])}"
|
||||||
return context
|
return context
|
||||||
|
|||||||
Reference in New Issue
Block a user