#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 , 16 years ago
Component: | Template system → django.contrib.admin |
---|
comment:2 by , 16 years ago
comment:3 by , 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:6 by , 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.
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)