diff --git a/rest_framework/authtoken/admin.py b/rest_framework/authtoken/admin.py index b359e4cfe..6aaa37e2c 100644 --- a/rest_framework/authtoken/admin.py +++ b/rest_framework/authtoken/admin.py @@ -22,6 +22,7 @@ class TokenChangeList(ChangeList): class TokenAdmin(admin.ModelAdmin): list_display = ('key', 'user', 'created') + raw_id_fields = ('user',) fields = ('user',) ordering = ('-created',) actions = None # Actions not compatible with mapped IDs.