Opened 17 years ago

Closed 17 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: no UI/UX: no

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@…> 17 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Adrian Holovaty, 17 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Adrian Holovaty, 17 years ago

Version: SVNnewforms-admin

comment:3 by Adrian Holovaty, 17 years ago

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 by anonymous, 17 years ago

Cc: andy-django@… added

by Jakub Wiśniowski <news.crumbler@…>, 17 years ago

Attachment: user_change_password.patch added

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

Has patch: set

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

comment:6 by Russell Keith-Magee, 17 years ago

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