From 1dbf8f479e7feaa1084bc720a06f4be8edb800de Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 22 Feb 2026 22:48:14 +0000 Subject: [PATCH] Fix ticket config update returning full page instead of fragment The update_tickets route was rendering index.html (full page) but the HTMX form targets #entry-tickets with innerHTML swap. Return just the _tickets.html fragment instead. Co-Authored-By: Claude Opus 4.6 --- bp/calendar_entry/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bp/calendar_entry/routes.py b/bp/calendar_entry/routes.py index cfb8027..8aeda90 100644 --- a/bp/calendar_entry/routes.py +++ b/bp/calendar_entry/routes.py @@ -550,8 +550,8 @@ def register(): await g.s.flush() - # Return updated entry view - html = await render_template("_types/entry/index.html") + # Return just the tickets fragment (targeted by hx-target="#entry-tickets-...") + html = await render_template("_types/entry/_tickets.html") return await make_response(html, 200) @bp.get("/posts/search/")