Django

Code

Ticket #2384 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Changing TEMPLATE_STRING_IF_INVALID breaks Admin Interface display of model list

Reported by: robbie@prelab.net Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Model functions (as opposed to fields) used in "list_display" for the Admin interface lack the attribute "class_attrib". If TEMPLATE_STRING_IF_INVALID is changed from the default "" the new string is inserted at the end of the column's <th> tag, causing the model's list table to break on rendering.

Affects Admin interface template:

contrib/admin/templates/admin/change_list_results.html

Attachments

Change History

10/13/06 09:26:09 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [3901]) Fixes #2384,#2566 -- Clarify the role that TEMPLATE_STRING_IF_INVALID plays in the template system, and the problems that can occur if it is used on a production site.


Add/Change #2384 (Changing TEMPLATE_STRING_IF_INVALID breaks Admin Interface display of model list)




Change Properties
Action