Code

Opened 5 years ago

Closed 5 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.

Attachments (0)

Change History (1)

comment:1 Changed 5 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.