Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2237 closed defect (duplicate)

Setting TEMPLATE_STRING_IF_INVALID causes admin page headline to vanish

Reported by: russellm Owned by: adrian
Component: contrib.admin Version: master
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: UI/UX:


Vladimir Pouzanov <farcaller@…> reports:

When I add


to my config, first page of admin (i.e. is rendered without 'Django administration' headline.

Change History (3)

comment:1 Changed 10 years ago by russellm

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 Changed 10 years ago by russellm

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

Duplicate of #1338.

comment:3 Changed 10 years ago by russellm

(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