#8916: admin auth change password not working
-------------------------------------------+--------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: reopened | Milestone:
Component: django.contrib.admin | Version: 1.0
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by benshapiro):
Aha! I think we're on to something here. I had the following:
{{{
from spackle.spackle1.models import *
from django.contrib import admin
admin.site.register(School)
admin.site.register(Cohort)
admin.site.register(PersonAggregation)
admin.site.register(Course)
class PersonInline(admin.StackedInline):
model=Person
max_num=1
extra=1
class UserOptions(admin.ModelAdmin):
inlines = [PersonInline,]
admin.site.unregister(User)
admin.site.register(User, UserOptions)
admin.site.register(Person)
}}}
It works fine, now that I've taken out the UserOptions stuff.
So, what's the trick in newforms admin to doing what I'm trying to do
here? Is there a recommended way to do this?
Ben
--
Ticket URL: <http://code.djangoproject.com/ticket/8916#comment:7>
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
-~----------~----~----~----~------~----~------~--~---