Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#13594 closed (fixed)

error when trying to change password on a user extended class

Reported by: urielbertoche Owned by: nobody
Component: contrib.admin Version: 1.2
Severity: Keywords: password
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

this is my admin.py on medico app

from rsm.medico.models import Medico, Telefone
from django.contrib import admin

class MedicoAdmin(admin.ModelAdmin):
    list_display = ('username', 'id', 'email')

admin.site.register(Medico, MedicoAdmin)

when I click "change password" on add medico form, I get this error message

Request Method: 	GET
Request URL: 	http://localhost:8000/admin/medico/medico/add/password/
Django Version: 	1.2 rc 1
Exception Type: 	ValueError
Exception Value: 	

invalid literal for int() with base 10: 'add/password'
...

Change History (5)

comment:1 by urielbertoche, 14 years ago

comment:2 by Karen Tracey, 14 years ago

Resolution: duplicate
Status: newclosed

If you're going to extend User, you need to also at a minimum extend the UserAdmin for the admin registration. More details on how to get it to work can be found in #9656 and #11406. Ultimately a more cleanly extensible User model is what is needed, that's the topic of #3011.

comment:3 by Russell Keith-Magee, 14 years ago

Resolution: duplicatefixed

(In [13526]) Fixed #13594 -- Corrected typo in email docs. Thanks to mostrovsky for the report.

comment:4 by Russell Keith-Magee, 14 years ago

(In [13532]) [1.2.X] Fixed #13594 -- Corrected typo in email docs. Thanks to mostrovsky for the report.

Backport of r13526 from trunk.

comment:5 by Russell Keith-Magee, 14 years ago

Fat fingers -- The email docs patch is for #13954.

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