I have a user profile to collect and store additional information about my 
users.

I would like to be able to view (and sort by) these attributes when I look at a 
list of my users in the admin. With the way my admin.py is written now, I can 
see the addition attributes when I create/modify an individual user, but the 
attribute is absent when I am looking at the list.

my admin.py:
from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from pssDjango.accounts.models import PSSUser

admin.site.unregister(User)

class UserProfileInline(admin.StackedInline):
    model = PSSUser

class UserProfileAdmin(UserAdmin):
    inlines = [UserProfileInline]

admin.site.register(User, UserProfileAdmin)

Any suggestions?

Thanks,
-Colleen

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to