django-orchestra/orchestra/contrib/orchestration/apps.py

15 lines
492 B
Python
Raw Normal View History

2023-07-09 07:51:51 +00:00
from django.apps import AppConfig
from orchestra.core import administration
class OrchestrationConfig(AppConfig):
name = 'orchestra.contrib.orchestration'
verbose_name = "Orchestration"
def ready(self):
from .models import Server, Route, BackendLog
administration.register(BackendLog, icon='scriptlog.png')
administration.register(Server, parent=BackendLog, icon='vps.png')
administration.register(Route, parent=BackendLog, icon='hal.png')