{# this is essentially admin/includes/fieldset.html, with detection of hidden fields. #} {# context structure: InlineFieldset -> Fieldline -> AdminField -> form field (BoundField instance) #} {# The hidden field handling is made in advance of https://code.djangoproject.com/ticket/11277 getting merged to trunk #} {% for line in fieldset %}{% for adminfield in line %}{% if adminfield.field.is_hidden %} {{ adminfield.field }}{# render all hidden fields top level, compacter and easier to debug #} {% endif %}{% endfor %}{% endfor %}