mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Merge ef14ef9372
into 6831472a62
This commit is contained in:
commit
69db0f8ef5
|
@ -4,6 +4,7 @@ from rest_framework.authtoken.models import Token
|
|||
|
||||
|
||||
class TokenAdmin(admin.ModelAdmin):
|
||||
search_fields = ("key", "user__username")
|
||||
list_display = ('key', 'user', 'created')
|
||||
fields = ('user',)
|
||||
ordering = ('-created',)
|
||||
|
|
Loading…
Reference in New Issue
Block a user