#8916: admin auth change password not working
-------------------------------------------+--------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: closed | Milestone:
Component: django.contrib.admin | Version: 1.0
Resolution: invalid | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by kmtracey):
Replying to [comment:12 donkeyhotty]:
> Hi, I'm leaving this ticket closed because I'm a complete newb, and I
don't have the experience to figure out whether this is my fault or not.
But for what it's worth I seem to have exactly the same problem as a few
other people here. Traceback is below. It's what I get when I click the
"change password form" link in the Django Administration when editing a
User. Besides adding
> [[BR]]
> admin.site.register(User)
> [[BR]]
> admin.site.register(Group)
> [[BR]]
>
Why are you registering User and Group to admin in your own app? If you
use admin.autodiscover() in your urls.py then User and Group will be
registered with the custom admin models defined for them by default. If
you are overriding them in some way you need to inherit from the cusom
models defined in /django/contrib/auth/admin.py, not !ModelAdmin, because
the password stuff, for instance, is added in the custom model. So the
problem is resulting because you are including 'admin.site.register(User)'
in your own code. That registration will not support changing passwords
as the default one set up in django/contrib/auth/admin.py does.
If you have follow-up questions, the django-users list is a better place
for questions like this.
--
Ticket URL: <http://code.djangoproject.com/ticket/8916#comment:13>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---