Code

Opened 6 years ago

Closed 5 years ago

Last modified 3 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:

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.

Attachments (0)

Change History (6)

comment:1 Changed 6 years ago by anonymous

  • Component changed from Template system to django.contrib.admin
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 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 5 years ago by SmileyChris

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

  • milestone post-1.0 deleted

Milestone post-1.0 deleted

comment:5 Changed 5 years ago by jacob

  • Resolution set to wontfix
  • Status changed from new to closed

See what Chris said.

comment:6 Changed 3 years ago by Ubercore

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.