Merge pull request #976 from gertjanol/add-tokenadmin-model

Add an ModelAdmin for easy management of Tokens
This commit is contained in:
Tom Christie 2013-07-09 05:08:47 -07:00
commit bafc06e19c

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)