Code

Opened 8 years ago

Closed 8 years ago

#2533 closed defect (fixed)

[patch] malformed xml in admin template edit_inline_tabular.html

Reported by: erikg@… Owned by: adrian
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: UI/UX:

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 %}

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by erikg@…

  • Summary changed from malformed xml in admin template edit_inline_tabular.html to [patch] malformed xml in admin template edit_inline_tabular.html

comment:2 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.