forked from erp-dev/erp
19 lines
562 B
Python
19 lines
562 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class PrintingConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'printing'
|
|
verbose_name = '印染管理'
|
|
|
|
def ready(self):
|
|
"""注册信号处理函数"""
|
|
from stateflow.signals import process_completed
|
|
from .models import PrintingJob
|
|
from . import handlers
|
|
|
|
# 监听 PrintingJob 流程完成信号
|
|
process_completed.connect(
|
|
handlers.on_printing_job_process_completed,
|
|
sender=PrintingJob
|
|
) |