mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 18:13:57 +03:00
13 lines
261 B
Python
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)
|