Code

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#9599 closed (duplicate)

TEMPLATE_STRING_IF_INVALID added to URL's when creating a new user in the admin panel

Reported by: crunchorn <crunchorn@…> Owned by: nobody
Component: contrib.admin Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When TEMPLATE_STRING_IF_INVALID is set in the Settings.py (for example: TEMPLATE_STRING_IF_INVALID = '---!_ERR_!---') you can't create a new user from admin panel beacause it is concatenated with links like ' Save and add another ', ' Save ', ' Save and continue editing ' and above the admin panels header.

Finnaly they look like:
http://localhost:7777/admin/auth/user/add/---!_ERR_!---


After clicking on the links mentioned above i get following error:

ValueError at /admin/auth/user/add/---!_ERR_!---
invalid literal for int() with base 10: 'add/---!_ERR_!---'



Traceback is available on: http://dpaste.com/hold/90709/

Settings.py: http://dpaste.com/hold/90708/

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by kmtracey

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

Dup of #9051, #5532, #4279, and #3579 -- it's also documented that admin relies on this setting being empty.

comment:2 Changed 5 years ago by anonymous

  • milestone post-1.0 deleted

Milestone post-1.0 deleted

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.