

def process_template_response(self, request, response):
    if (self._view is None):
        return response
    p = self._view.parent
    view_path = []
    while (p is not None):
        view_path.append(p.as_dict())
        p = p.parent
    if (response.context_data is None):
        response.context_data = {
            
        }
    response.context_data['crumbs'] = reversed(view_path)
    return response

dataset/ETHPy150Open kirelagin/django-headcrumbs/headcrumbs/middleware.py CrumbsMiddleware.process_template_response/original