comfy/wagtail_store/setup/admin.py

23 wiersze
454 B
Python
Czysty Zwykły widok Historia

2023-09-01 13:15:16 +00:00
from wagtail.contrib.modeladmin.options import (
ModelAdmin,
ModelAdminGroup,
modeladmin_register
)
2023-09-01 13:15:16 +00:00
from setup.models import ComfyConfig
class ConfigAdmin(ModelAdmin):
model = ComfyConfig
list_display = ("updated", )
class SetupModelAdminGroup(ModelAdminGroup):
menu_label = "Setup"
menu_icon = 'folder-open-inverse'
menu_order = 200
items = (
ConfigAdmin,
)
modeladmin_register(SetupModelAdminGroup)