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 }}