

def get_data(self, request, **kwargs):
    if (not hasattr(self, '_stack')):
        stack_id = kwargs['stack_id']
        try:
            stack = api.heat.stack_get(request, stack_id)
            self._stack = stack
            request.session['stack_id'] = stack.id
            request.session['stack_name'] = stack.stack_name
        except Exception:
            msg = _('Unable to retrieve stack.')
            redirect = reverse('horizon:project:stacks:index')
            exceptions.handle(request, msg, redirect=stack)
    return self._stack

dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/dashboards/project/stacks/views.py DetailView.get_data/VarMisuse@110/152 `redirect`->`stack`