mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-04 04:39:38 +00:00
* 添加站内信 * s * s * 添加接口 * fix * fix * 重构了一些 * 完成 * 完善 * s * s * s * s * s * s * 测试ok * 替换业务中发送消息的方式 * 修改 * s * 去掉 update 兼容 create * 添加 unread total 接口 * 调整json字段 Co-authored-by: xinwen <coderWen@126.com>
18 lines
474 B
Python
18 lines
474 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 = _('Operations')
|
|
|
|
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 notifications
|
|
super().ready()
|