def get_breadcrumbs(context): breadcrumbs = context.get("breadcrumbs") if breadcrumbs is None: breadcrumbs = Breadcrumbs.infer(context) return breadcrumbs