From edad7b299d0b4ce9ddc84d0ad0ed2b986491497e Mon Sep 17 00:00:00 2001 From: giles Date: Thu, 19 Feb 2026 05:05:04 +0000 Subject: [PATCH] Fix DTO compatibility in cart templates and page_cart service - page_cart.py: use ce.calendar_container_id instead of ce.calendar.container_id - _cart.html: use entry.calendar_name instead of entry.calendar.name - Update shared submodule with DTO field additions Co-Authored-By: Claude Opus 4.6 --- bp/cart/services/page_cart.py | 4 ++-- templates/_types/cart/_cart.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bp/cart/services/page_cart.py b/bp/cart/services/page_cart.py index eff814f..13cf49f 100644 --- a/bp/cart/services/page_cart.py +++ b/bp/cart/services/page_cart.py @@ -101,8 +101,8 @@ async def get_cart_grouped_by_page(session) -> list[dict]: groups[pid]["cart_items"].append(ci) for ce in cal_entries: - if ce.calendar and ce.calendar.container_id: - pid = ce.calendar.container_id + if ce.calendar_container_id: + pid = ce.calendar_container_id else: pid = None groups[pid]["post_id"] = pid diff --git a/templates/_types/cart/_cart.html b/templates/_types/cart/_cart.html index 37ec396..22427ca 100644 --- a/templates/_types/cart/_cart.html +++ b/templates/_types/cart/_cart.html @@ -43,7 +43,7 @@
  • - {{ entry.name or entry.calendar.name }} + {{ entry.name or entry.calendar_name }}
    {{ entry.start_at }}