mirror of https://github.com/jumpserver/jumpserver
20 lines
537 B
Python
20 lines
537 B
Python
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')
|
|
|
|
def ready(self):
|
|
from orgs.models import Organization
|
|
from orgs.utils import set_current_org
|
|
set_current_org(Organization.root())
|
|
from .celery import signal_handler
|
|
from . import signal_handlers
|
|
from . import notifications
|
|
from . import tasks
|
|
super().ready()
|