From 777b0cd4cbc8db25bace006548d09d621ddc73e6 Mon Sep 17 00:00:00 2001 From: Alex Laird Date: Mon, 18 Mar 2024 10:05:00 -0500 Subject: [PATCH] Revert PR that adds autocomplete_fields to TokenAdmin, as this break some use cases. --- rest_framework/authtoken/admin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/rest_framework/authtoken/admin.py b/rest_framework/authtoken/admin.py index 163328eb07..eabb8fca8b 100644 --- a/rest_framework/authtoken/admin.py +++ b/rest_framework/authtoken/admin.py @@ -28,7 +28,6 @@ class TokenAdmin(admin.ModelAdmin): search_help_text = _('Username') ordering = ('-created',) actions = None # Actions not compatible with mapped IDs. - autocomplete_fields = ("user",) def get_changelist(self, request, **kwargs): return TokenChangeList