Ticket #13068: prepopulate.6-1.3.diff

File prepopulate.6-1.3.diff, 1.3 KB (added by stan <stanislas.guerra__at__gmail.com>, 14 years ago)

Patch for the StackedInline formsets (django-1.3).

  • django/contrib/admin/templates/admin/includes/fieldset.html

     
    44        <div class="description">{{ fieldset.description|safe }}</div>
    55    {% endif %}
    66    {% for line in fieldset %}
    7         <div class="form-row{% if line.fields|length_is:'1' and line.errors %} errors{% endif %}{% for field in line %} {{ field.field.name }}{% endfor %}">
     7        <div class="form-row{% if line.fields|length_is:'1' and line.errors %} errors{% endif %}">
    88            {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %}
    99            {% for field in line %}
    10                 <div{% if not line.fields|length_is:'1' %} class="field-box{% if not field.is_readonly and field.errors %} errors{% endif %}"{% endif %}>
     10                <div{% if not line.fields|length_is:'1' %} class="field-box{% if not field.is_readonly and field.errors %} errors{% endif %} {{ field.field.name }}"{% endif %}>
    1111                    {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %}
    1212                    {% if field.is_checkbox %}
    1313                        {{ field.field }}{{ field.label_tag }}
Back to Top