{% load helpers %} {% load form_helpers %} {# If the form field carries an `htmx_attrs` dict, wrap output in a persistent HTMX swap target. #} {# The wrapper's innerHTML is replaced on each swap; the wrapper itself persists across swaps so #} {# its HTMX attributes do not need to be re-emitted by the partial that returns the new content. #} {% if field.field.htmx_attrs %}