mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 02:53:58 +03:00
Revert PR that adds autocomplete_fields to TokenAdmin, as this break some use cases. (#9301)
This commit is contained in:
parent
77ef27f18f
commit
d7c8dcfc7e
|
@ -28,7 +28,6 @@ class TokenAdmin(admin.ModelAdmin):
|
||||||
search_help_text = _('Username')
|
search_help_text = _('Username')
|
||||||
ordering = ('-created',)
|
ordering = ('-created',)
|
||||||
actions = None # Actions not compatible with mapped IDs.
|
actions = None # Actions not compatible with mapped IDs.
|
||||||
autocomplete_fields = ("user",)
|
|
||||||
|
|
||||||
def get_changelist(self, request, **kwargs):
|
def get_changelist(self, request, **kwargs):
|
||||||
return TokenChangeList
|
return TokenChangeList
|
||||||
|
|
Loading…
Reference in New Issue
Block a user