Improvements to profile detail page

This commit is contained in:
2020-11-15 16:53:11 +00:00
parent 06e22b0d61
commit 0aa10d86cd
5 changed files with 52 additions and 28 deletions

View File

@@ -53,6 +53,11 @@ class ProfileDetail(generic.DetailView):
return self.model.objects.filter(pk=pk)
def get_context_data(self, **kwargs):
context = super(ProfileDetail, self).get_context_data(**kwargs)
context['page_title'] = "Profile: {}".format(self.object)
return context
class ProfileUpdateSelf(generic.UpdateView):
template_name = "profile_form.html"