Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2237 closed defect (duplicate)

Setting TEMPLATE_STRING_IF_INVALID causes admin page headline to vanish

Reported by: Russell Keith-Magee Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: normal Keywords: admin TEMPLATE_STRING_IF_INVALID
Cc: farcaller@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Vladimir Pouzanov <farcaller@…> reports:

When I add

TEMPLATE_STRING_IF_INVALID = 'INVALID'

to my config, first page of admin (i.e. http://127.0.0.1:8000/admin/) is rendered without 'Django administration' headline.

Change History (3)

comment:1 by Russell Keith-Magee, 18 years ago

A few more details: The headline is missing from the main page; if you follow a link to a model, the headline comes back, but the column titles for object instances are rendered as the text "INVALID" (or whatever you set TEMPLATE_STRING_IF_INVALID to be).

comment:2 by Russell Keith-Magee, 18 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #1338.

comment:3 by Russell Keith-Magee, 18 years ago

(In [3268]) Fixes #1338, Refs #1400, #2237 -- Modified variable resolution to allow template 'if' statements to work if TEMPLATE_STRING_IF_INVALID is set. Modified unit tests to force the use of this variable, so that returning isn't confused with an actual failure.

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