django-rest-framework/rest_framework/authtoken/admin.py
2015-06-25 16:10:17 -04:00

13 lines
261 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)