Opened 10 years ago

Closed 9 years ago

#4450 closed (fixed)

[newforms-admin] Change password form in edit form for user causes ProgrammingError

Reported by: Glin Owned by: Adrian Holovaty
Component: contrib.admin Version: newforms-admin
Severity: Keywords:
Cc: andy-django@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In newforms-admin branch, when I go to Users, then click to specific user(or click to add user), then in password section in form click to "change password form", I get error such as this:

ProgrammingError at /admin/auth/user/1/password/
invalid input syntax for integer: "1/password"

Request Method:  	GET
Request URL: 	http://127.0.0.1:8000/admin/auth/user/1/password/

Exception Type: 	ProgrammingError
Exception Value: 	invalid input syntax for integer: "1/password"
Exception Location: 	/usr/lib/python2.4/site-packages/django/db/backends/util.py in execute, line 17

Attachments (1)

user_change_password.patch (1.6 KB) - added by Jakub Wiśniowski <news.crumbler@…> 9 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 10 years ago by Adrian Holovaty

Triage Stage: UnreviewedAccepted

comment:2 Changed 10 years ago by Adrian Holovaty

Version: SVNnewforms-admin

comment:3 Changed 10 years ago by Adrian Holovaty

This is happening because the previous (trunk) admin overrides the admin URLconf value for /auth/user/ as a special case, and newforms-admin doesn't do that yet.

comment:4 Changed 9 years ago by anonymous

Cc: andy-django@… added

Changed 9 years ago by Jakub Wiśniowski <news.crumbler@…>

Attachment: user_change_password.patch added

comment:5 Changed 9 years ago by Jakub Wiśniowski <news.crumbler@…>

Has patch: set

I attached a simple patch that solves the problem for me.

comment:6 Changed 9 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [5998]) newforms-admin: Fixed #4450 -- Added URL override for user password changes in admin interface. Thanks for the help on this, Jakub Wisniowski.

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