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