Opened 6 years ago

Closed 6 years ago

#12052 closed (invalid)

If settings.py has TEMPLATE_STRING_IF_INVALID set, adding new user from admin doesn't work

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

Description

E.g.
TEMPLATE_STRING_IF_INVALID = 'ANYTHING'

http://localhost/admin/auth/user/add/ site has then "ANYTHING" in top of the page and this kind of HTML: <form action="ANYTHING" method="post" id="user_form">

When TEMPLATE_STRING_IF_INVALID = 'ANYTHING' is commented, adding user works.

Change History (1)

comment:1 Changed 6 years ago by lukeplant

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The documentation clearly states that using this setting for anything other than template rendering debugging will cause breakage:

http://docs.djangoproject.com/en/dev/ref/templates/api/#invalid-template-variables

(and that section is linked from the section about TEMPLATE_STRING_IF_INVALID in the settings reference.

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