Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#11473 closed (duplicate)

TEMPLATE_STRING_IF_INVALID breaks admin template

Reported by: Leo Shklovskii Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Repro:

  1. set TEMPLATE_STRING_IF_INVALID in settings to 'FOOBAR'
  2. view any object list page in the admin
  3. notice the checkbox on the left of the items is misaligned
  4. view source to see the following:
    <table cellspacing="0">
    <thead>
    
    <tr>
    <thFOOBAR>
    

I suspect this is a pretty easy fix, I just couldn't figure out where to make it. The templates are pretty abstract/convoluted :-/

Change History (3)

comment:1 by Ramiro Morales, 15 years ago

Resolution: duplicate
Status: newclosed

This is known issue (#3579 tracks it). I don't dare to call it a bug because the behavior is documented (see the "For debug purposes only!" note at http://docs.djangoproject.com/en/dev/ref/templates/api/#how-invalid-variables-are-handled)

comment:2 by Leo Shklovskii, 15 years ago

Thanks ramiro, totally missed #3579. You're right, the behavior is documented, but it still may be a good idea to change the admin templates to handle it better. Obviously, pretty low pri.

comment:3 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

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