{% extends 'admin/change_form.html' %} {% load static i18n admin_urls %} {% block extrastyle %} {{ block.super }} {% comment %} {% endcomment %} {% comment %} {% endcomment %} {% endblock %} {% block field_sets %} {% comment %} fieldset.name 为空的放在最前面 {% endcomment %} {% for fieldset in adminform %} {% if forloop.counter0 == 0 %} {% include "admin/jqueryui_tabs/includes/fieldset.html" %} {% endif %} {% endfor %} {% comment %} 渲染 tabs {% endcomment %}
{% comment %} 渲染 tabs 的内容 {% endcomment %} {% for fieldset in adminform %} {% if forloop.counter0 != 0 %} {% include "admin/jqueryui_tabs/includes/fieldset.html" %} {% endif %} {% endfor %} {% for inline_admin_formset in inline_admin_formsets %} {% include inline_admin_formset.opts.template %} {% endfor %}
{% endblock %} {% block inline_field_sets %} {% comment %} 覆写为空 {% endcomment %} {% endblock %} {% block admin_change_form_document_ready %} {{ block.super }} {% endblock %}