Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#9463 closed (wontfix)

Allow filtering on UserProfiles that are inline

Reported by: cornbread Owned by: nobody
Component: contrib.admin Version: 1.0
Severity: Keywords: filter, user profile
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have a user profile associated with every user. For ease of use I have the form inline with my user admin so I can see all of the user information at one time. In the users portion of the admin I have added city, state, address, and is_owner.

This is something that is probably a very common thing to do. Recently I have wanted to filter by owners and have not figured out a way how to do so. Please consider this as a feature in the future.

Change History (6)

comment:1 by anonymous, 16 years ago

Component: Template systemdjango.contrib.admin

comment:2 by cornbread, 16 years ago

I would actually suggest a way to have the user profile show up in the users admin page. maybe in Meta: show_user_profile. then user_profile_fields = ('address', 'city', 'state', 'zip', etc)

comment:3 by Chris Beaven, 16 years ago

cornbread, there's already that way (you unregister the User model then reregister it with a subclassed manager which uses an inline to your profile)

If this is a solution to this ticket then please close it.

comment:4 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

comment:5 by Jacob, 16 years ago

Resolution: wontfix
Status: newclosed

See what Chris said.

comment:6 by Ubercore, 14 years ago

Just a note, this is possible in 1.3. The following works:

class UserAdmin(admin.ModelAdmin):
    list_filter = ('profile__organization', )
admin.site.unregister(User)
admin.site.register(User, UserAdmin)

I believe that's what was being described here.

Note: See TracTickets for help on using tickets.
Back to Top