def get_context_data(self, **kwargs): context = super(DetailView, self).get_context_data(**kwargs) stack = self.get_data(self.request, **kwargs) table = project_tables.StacksTable(self.request) context["stack"] = stack context["url"] = self.get_redirect_url() context["actions"] = table.render_row_actions(stack) return context
def get_context_data(self, **kwargs): context = super(DetailView, self).get_context_data(**kwargs) stack = self.get_data(self.request, **kwargs) table = project_tables.StacksTable(self.request) context["stack"] = stack context["url"] = self.get_redirect_url() context["actions"] = table.render_row_actions(stack) context["page_title"] = _("Stack Details: " "%(stack_name)s") % {'stack_name': stack.stack_name} return context