aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/authtoken/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/authtoken/admin.py')
-rw-r--r--rest_framework/authtoken/admin.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/rest_framework/authtoken/admin.py b/rest_framework/authtoken/admin.py
new file mode 100644
index 00000000..0d948160
--- /dev/null
+++ b/rest_framework/authtoken/admin.py
@@ -0,0 +1,11 @@
+from django.contrib import admin
+from .models import Token
+
+
+class TokenAdmin(admin.ModelAdmin):
+ list_display = ('key', 'user', 'created')
+ fields = ('user',)
+ ordering = ('-created',)
+
+
+admin.site.register(Token, TokenAdmin)