Much versioning work

This commit is contained in:
2022-01-01 19:53:03 +00:00
parent 0727a23236
commit 70d4c42676
10 changed files with 32 additions and 28 deletions

View File

@@ -42,7 +42,7 @@ class ProfileDetail(generic.DetailView):
def get_context_data(self, **kwargs):
context = super(ProfileDetail, self).get_context_data(**kwargs)
context['page_title'] = "Profile: {}".format(self.object)
context["completed_levels"] = self.object.as_trainee.level_qualifications()
context["completed_levels"] = self.object.level_qualifications.all().select_related('level')
return context