{% extends request.htmx|yesno:"admin/yp_admin/change_list_fragment_base.html,admin/change_list.html" %} {% load i18n admin_urls static admin_list %} {% block content %} {% if request.htmx %} {# htmx request — only the swap fragment, no chrome #} {% include "admin/yp_admin/change_list_form_fragment.html" %} {% else %} {# Full page render — delegate to stock Django admin template #} {{ block.super }} {% endif %} {% endblock %}