Opened 6 years ago

Closed 5 years ago

Last modified 5 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: UI/UX:


this is my on medico app

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

class MedicoAdmin(admin.ModelAdmin):
    list_display = ('username', 'id', 'email'), 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 Changed 6 years ago by urielbertoche

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by kmtracey

  • Resolution set to duplicate
  • Status changed from new to closed

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 Changed 5 years ago by russellm

  • Resolution changed from duplicate to fixed

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

comment:4 Changed 5 years ago by russellm

(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 Changed 5 years ago by russellm

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

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