Fix ticket_types lazy-load in async: add lazy=selectin

CalendarEntry.ticket_types used default lazy loading which triggers
MissingGreenlet in async context when accessed in templates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-18 22:02:03 +00:00
parent e3f8ff6e3c
commit ea7dc9723a

View File

@@ -129,6 +129,7 @@ class CalendarEntry(Base):
cascade="all, delete-orphan", cascade="all, delete-orphan",
passive_deletes=True, passive_deletes=True,
order_by="TicketType.name", order_by="TicketType.name",
lazy="selectin",
) )
DAY_LABELS = [ DAY_LABELS = [