Opened 18 years ago

Closed 18 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: dev
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

Description

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 by erikg@…, 18 years ago

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

comment:2 by Adrian Holovaty, 18 years ago

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