#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:
- set TEMPLATE_STRING_IF_INVALID in settings to 'FOOBAR'
- view any object list page in the admin
- notice the checkbox on the left of the items is misaligned
- 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 , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 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.
Note:
See TracTickets
for help on using tickets.
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)