mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Use raw user IDs in authtoken admin
This commit is contained in:
parent
7c6e34c14f
commit
b17eaba8e1
|
@ -6,6 +6,7 @@ from rest_framework.authtoken.models import Token
|
|||
class TokenAdmin(admin.ModelAdmin):
|
||||
list_display = ('key', 'user', 'created')
|
||||
fields = ('user',)
|
||||
raw_id_fields = ('user',)
|
||||
ordering = ('-created',)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user