Fix ticket config update returning full page instead of fragment
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s

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 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-22 22:48:14 +00:00
parent e1f96f02b1
commit 1dbf8f479e

View File

@@ -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/")