jumpserver/apps/ops/apps.py

20 lines
537 B
Python
Raw Normal View History

from __future__ import unicode_literals
from django.utils.translation import gettext_lazy as _
from django.apps import AppConfig
class OpsConfig(AppConfig):
name = 'ops'
verbose_name = _('App ops')
2018-04-02 07:54:49 +00:00
def ready(self):
from orgs.models import Organization
from orgs.utils import set_current_org
set_current_org(Organization.root())
2018-04-02 07:54:49 +00:00
from .celery import signal_handler
from . import signal_handlers
from . import notifications
2022-10-22 03:17:02 +00:00
from . import tasks
super().ready()