mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Removing authtoken from the django admin
This commit is contained in:
parent
836e49b535
commit
5f5834aeff
|
@ -1,12 +0,0 @@
|
|||
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)
|
Loading…
Reference in New Issue
Block a user