https://htmx.org logo
I'd suggest adding an `HX-Trigger` response header...
# 🔥-django-htmx
b
I'd suggest adding an
HX-Trigger
response header (https://htmx.org/headers/hx-trigger/) to your
DeleteView
and listening for it on the list (
hx-trigger="myCustomEvent from:body"
) along with the other
hx-
attributes required for calling your ListView and thus refreshing the fragment. That's what I do and it seems to work pretty well.