Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Enhance group membership admin filters.
Browse files Browse the repository at this point in the history
* Remove old geolocation search fields from admin.
  • Loading branch information
akatsoulas committed Apr 7, 2017
1 parent e868244 commit 2e396c0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions mozillians/groups/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,15 @@ class GroupMembershipAdmin(MozilliansAdminExportMixin, admin.ModelAdmin):
resource_class = GroupMembershipResource
list_display = ['group', 'userprofile', 'status', 'date_joined', 'updated_on']
search_fields = [
'group__name', 'group__url', 'group__description',
'group__aliases__name', 'group__aliases__url',
'userprofile__full_name', 'userprofile__ircname',
'userprofile__geo_region__name', 'userprofile__geo_city__name',
'userprofile__geo_country__name', 'userprofile__user__username',
'userprofile__user__email'
'group__name', 'group__url', 'group__description', 'group__aliases__name',
'group__aliases__url', 'userprofile__full_name', 'userprofile__ircname',
'userprofile__user__username', 'userprofile__user__email'
]
list_filter = [NeedsRenewalFilter]
list_filter = (
NeedsRenewalFilter,
('updated_on', admin.DateFieldListFilter,),
'status',
)
form = BaseGroupMembershipAutocompleteForm


Expand Down

0 comments on commit 2e396c0

Please sign in to comment.