Skip to content

Commit 3b472b9

Browse files
committed
use exact match for username search in API admin
Changes that we want to make to username lookup don't allow wildcard lookups, so revert to exact
1 parent b9e529f commit 3b472b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apiv2/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@admin.register(ApiV2Client)
2727
class ApiV2ClientAdmin(admin.ModelAdmin):
2828
raw_id_fields = ("user",)
29-
search_fields = ("user__username", "name", "=oauth_client__client_id", "=key", "description")
29+
search_fields = ("=user__username", "name", "=oauth_client__client_id", "=key", "description")
3030
list_filter = ("status", "throttling_level")
3131
list_display = ("name", "url", "user", "status", "throttling_level")
3232

0 commit comments

Comments
 (0)