Add an ModelAdmin for easy management of Tokens

This commit is contained in:
Gertjan Oude Lohuis 2013-07-09 12:19:13 +02:00
parent b05eba70bd
commit db863be10c

View File

@ -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)