#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 , 15 years ago
comment:2 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:3 by , 14 years ago
Resolution: | duplicate → fixed |
---|
comment:4 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
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.