2016-08-09 06:42:21 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.apps import AppConfig
|
2023-07-24 06:09:22 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2016-08-09 06:42:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
class OpsConfig(AppConfig):
|
|
|
|
name = 'ops'
|
2024-01-17 03:08:39 +00:00
|
|
|
verbose_name = _('App Ops')
|
2018-04-02 07:54:49 +00:00
|
|
|
|
|
|
|
def ready(self):
|
2018-07-31 02:27:55 +00:00
|
|
|
from orgs.models import Organization
|
|
|
|
from orgs.utils import set_current_org
|
|
|
|
set_current_org(Organization.root())
|
2023-07-24 06:09:22 +00:00
|
|
|
from .celery import signal_handler # noqa
|
|
|
|
from . import signal_handlers # noqa
|
|
|
|
from . import notifications # noqa
|
|
|
|
from . import tasks # noqa
|
2019-01-15 02:23:30 +00:00
|
|
|
super().ready()
|