I'm having a bit of a brain cramp here...I'm trying to add some extra
fields to my user profiles, but I can't seem to get the fields to show
up in the admin interface. I've added the admin.py directory to my
application root, but the fields obstinately will not show up in the
admin interface.
The only odd thing that I'm doing is that I don't have a single
models.py file with lots of classes, instead I have a models directory
containing an __init__.py file. Anyway, here's my admin.py....
admin.site.unregister(User)
class UserProfileInline(admin.StackedInline):
model = ClientReviewProfile # this contains my extra fields.
class UserProfileAdmin(UserAdmin):
inlines = [UserProfileInline]
admin.site.register(User, UserProfileAdmin)
Any ideas what I might be missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---