Revert PR that adds autocomplete_fields to TokenAdmin, as this break some use cases. (#9301)

This commit is contained in:
Alex Laird 2024-03-21 07:46:06 -05:00 committed by GitHub
parent 77ef27f18f
commit d7c8dcfc7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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