diff --git a/rest_framework/authtoken/admin.py b/rest_framework/authtoken/admin.py index b359e4cfe8..e41eb00023 100644 --- a/rest_framework/authtoken/admin.py +++ b/rest_framework/authtoken/admin.py @@ -25,6 +25,7 @@ class TokenAdmin(admin.ModelAdmin): fields = ('user',) ordering = ('-created',) actions = None # Actions not compatible with mapped IDs. + autocomplete_fields = ("user",) def get_changelist(self, request, **kwargs): return TokenChangeList