Opened 8 years ago

Closed 8 years ago

Last modified 6 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: UI/UX:


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 Changed 8 years ago by anonymous

Component: Template systemdjango.contrib.admin
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 8 years ago by cornbread

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 Changed 8 years ago by Chris Beaven

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 Changed 8 years ago by (none)

milestone: post-1.0

Milestone post-1.0 deleted

comment:5 Changed 8 years ago by Jacob

Resolution: wontfix
Status: newclosed

See what Chris said.

comment:6 Changed 6 years ago by Ubercore

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

class UserAdmin(admin.ModelAdmin):
    list_filter = ('profile__organization', ), UserAdmin)

I believe that's what was being described here.

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