

def get_context_data(self, **kwargs):
    context = super(DetailView, self).get_context_data(**kwargs)
    subnet = self.get_data()
    network = self.get_network(subnet.network_id)
    subnet.network_name = network.get('name')
    subnet.network_url = self.get_network_detail_url(subnet.network_id)
    network_nav = (subnet.network_name or subnet.network_id)
    table = project_tables.SubnetsTable(self.request, network_id=subnet.network_id)
    breadcrumb = [(_('Networks'), self.get_redirect_url()), (network_nav, subnet.network_url), (_('Subnets'),)]
    context['custom_breadcrumb'] = breadcrumb
    context['subnet'] = subnet
    context['url'] = self.get_redirect_url()
    context['actions'] = table.render_row_actions(subnet)
    return context

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/project/networks/subnets/views.py DetailView.get_context_data/original