mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
044252af1c
* Ensure that requiring 'uritemplate' does not also require 'coreapi' * Don't include autocomplete fields on TokenAuth admin * Version 3.10.1
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)
|