takahe/api/admin.py

14 lines
326 B
Python
Raw Permalink Normal View History

2022-12-11 04:03:14 +00:00
from django.contrib import admin
from api.models import Application, Token
@admin.register(Application)
class ApplicationAdmin(admin.ModelAdmin):
list_display = ["id", "name", "website", "created"]
@admin.register(Token)
class TokenAdmin(admin.ModelAdmin):
list_display = ["id", "user", "application", "created"]