Add ApiToken to admin

This commit is contained in:
Paweł Jastrzębski 2021-10-11 12:37:01 +02:00 committed by R. Miles McCain
parent ff6933b4de
commit 1dec03c724

View File

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