perf: 修改 signal handler

This commit is contained in:
ibuler
2022-03-03 09:58:09 +08:00
committed by 老广
parent dafc416783
commit 390b8693df
5 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ def on_site_message_create(sender, instance, created, **kwargs):
new_site_msg_chan.publish(data)
@receiver(post_migrate, dispatch_uid='notifications.signals_handler.create_system_messages')
@receiver(post_migrate, dispatch_uid='notifications.signal_handlers.create_system_messages')
def create_system_messages(app_config: AppConfig, **kwargs):
try:
notifications_module = import_module('.notifications', app_config.module.__package__)