mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-16 06:36:52 +03:00
12 lines
260 B
Python
12 lines
260 B
Python
from django.contrib import admin
|
|
from rest_framework.authtoken.models import Token
|
|
|
|
|
|
class TokenAdmin(admin.ModelAdmin):
|
|
list_display = ('key', 'user', 'created')
|
|
fields = ('user',)
|
|
ordering = ('-created',)
|
|
|
|
|
|
admin.site.register(Token, TokenAdmin)
|