Django

Code

Ticket #4450 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

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

Reported by: Glin Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: newforms-admin Keywords:
Cc: andy-django@thecablelounge.com Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

user_change_password.patch (1.6 kB) - added by Jakub Wiśniowski <news.crumbler@gmail.com> on 08/21/07 16:01:46.

Change History

06/01/07 14:29:32 changed by adrian

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

06/07/07 17:25:04 changed by adrian

  • version changed from SVN to newforms-admin.

06/07/07 17:29:23 changed by adrian

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.

07/24/07 16:39:04 changed by anonymous

  • cc set to andy-django@thecablelounge.com.

08/21/07 16:01:46 changed by Jakub Wiśniowski <news.crumbler@gmail.com>

  • attachment user_change_password.patch added.

08/21/07 16:04:56 changed by Jakub Wiśniowski <news.crumbler@gmail.com>

  • has_patch set to 1.

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

08/24/07 08:16:01 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #4450 ([newforms-admin] Change password form in edit form for user causes ProgrammingError)




Change Properties
Action