Ticket #11277: 11277-admin-hiddeninput-fieldset.html.diff

File 11277-admin-hiddeninput-fieldset.html.diff, 1002 bytes (added by Ben Boyd <beathan@…>, 4 years ago)
  • django/contrib/admin/templates/admin/includes/fieldset.html

     
    44        <div class="description">{{ fieldset.description|safe }}</div>
    55    {% endif %}
    66    {% for line in fieldset %}
     7        {% if not line.has_hidden_field %}
    78        <div class="form-row{% if line.fields|length_is:'1' and line.errors %} errors{% endif %}{% for field in line %} {{ field.field.name }}{% endfor %}">
    89            {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %}
    910            {% for field in line %}
     
    2526                </div>
    2627            {% endfor %}
    2728        </div>
     29        {% else %}
     30            {% for field in line %}
     31                {{ field.field }}
     32            {% endfor %}
     33        {% endif %}
    2834    {% endfor %}
    2935</fieldset>
Back to Top