Add ApiToken to admin

This commit is contained in:
Paweł Jastrzębski 2021-10-11 12:37:01 +02:00
parent 32adb64dc0
commit bec4b19366

View File

@ -1,3 +1,9 @@
from django.contrib import admin 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)