Skip to content

Commit

Permalink
chore(organizations): add search field to organization user admin page (
Browse files Browse the repository at this point in the history
#5452)

### 📣 Summary
Added a search field to the organization user admin page to simplify
user lookup and enable narrowing down the export list.

### 📖 Description
A search field has been added to the organization user admin page,
allowing administrators to efficiently find organization users by
username or organization name and id. Additionally, this search
functionality can be used to narrow down the export list, making it
easier to export only the desired subset of users.
  • Loading branch information
noliveleger authored Jan 27, 2025
1 parent 465f1f3 commit 0edbb45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kobo/apps/organizations/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Meta:
@admin.register(OrganizationUser)
class OrgUserAdmin(ImportExportModelAdmin, BaseOrganizationUserAdmin):
resource_classes = [OrgUserResource]
search_fields = ['user__username', 'organization__name', 'organization__id']

actions = (
create_export_job_action,
Expand Down

0 comments on commit 0edbb45

Please sign in to comment.