#11298 closed (invalid)
adding user in contrib.admin while TEMPLATE_STRING_IF_INVALID set corrupts form url
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When I have TEMPLATE_STRING_IF_INVALID = '¤' in settings.py, trying to add new auth.User using default form throws exception:
ValueError at /admin/auth/user/add/¤ invalid literal for int() with base 10: 'add/\xa4' Request Method: POST Request URL: http://localhost:8000/admin/auth/user/add/%C2%A4 Exception Type: ValueError Exception Value: invalid literal for int() with base 10: 'add/\xa4' Exception Location: c:\@django\Django-trunk\django\db\models\sql\query.py in add_filter, line 1614
something is rendered at end of url even if it not exists:
ValueError at /admin/auth/user/add/¤
This happens after "Save" button even if I do not enter any username nor passwords in form, simply to issue validation.
Note:
See TracTickets
for help on using tickets.
The admin relies on having TEMPLATE_STRING_IF_INVALID set to , this is not a bug.