

def get_initial(self):
    router = self.get_object()
    self.request.META['router'] = router
    return {
        'router_id': self.kwargs['router_id'],
        'router_name': router.name,
    }

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/project/routers/extensions/routerrules/views.py AddRouterRuleView.get_initial/original