Opened 14 years ago

Closed 14 years ago

#2533 closed defect (fixed)

[patch] malformed xml in admin template edit_inline_tabular.html

Reported by: erikg@… Owned by: Adrian Holovaty
Component: contrib.admin Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The edit_inline_tabular.html template of the admin site contains malformed XML which causes it to fail when serving it as application/xhtml+xml. The following patch fixes the problem:

--- django/contrib/admin/templates/admin/edit_inline_tabular.html       (revision 3557)
+++ django/contrib/admin/templates/admin/edit_inline_tabular.html       (working copy)
@@ -7,6 +7,7 @@
          <th{{ fw.header_class_attribute }}>{{ fw.field.verbose_name|capfirst|escape }}</th>
       {% endif %}
    {% endfor %}
+   </tr></thead>
    {% for fcw in bound_related_object.form_field_collection_wrappers %}
       {% if change %}{% if original_row_needed %}
          {% if fcw.obj.original %}

Change History (2)

comment:1 Changed 14 years ago by erikg@…

Summary: malformed xml in admin template edit_inline_tabular.html[patch] malformed xml in admin template edit_inline_tabular.html

comment:2 Changed 14 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [3571]) Fixed #2533 -- Fixed XHTML error in admin edit_inline_tabular.html template. Thanks, erikg@…

Note: See TracTickets for help on using tickets.
Back to Top