4👍
✅
Try this
admin.py:
from rest_framework.authtoken.models import Token
class FilterTokenAdmin(admin.ModelAdmin):
search_fields = ['user__email','user__username']
admin.site.register(Token,FilterTokenAdmin)
Source:stackexchange.com