Add ApiToken to admin
This commit is contained in:
parent
32adb64dc0
commit
bec4b19366
@ -1,3 +1,9 @@
|
||||
from django.contrib import admin
|
||||
from api.models import ApiToken
|
||||
|
||||
# Register your models here.
|
||||
|
||||
class ApiTokenAdmin(admin.ModelAdmin):
|
||||
list_display = ("name", "user", "value")
|
||||
|
||||
|
||||
admin.site.register(ApiToken, ApiTokenAdmin)
|
||||
|
Loading…
Reference in New Issue
Block a user