perf: create account add activity log

pull/14693/head
jiangweidong 2024-12-18 15:47:07 +08:00 committed by Bryan
parent 674ea7142f
commit b5aeb24ae9
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def create_accounts_activities(account, action='create'):
@receiver(post_save, sender=Account)
def on_account_create_by_template(sender, instance, created=False, **kwargs):
if not created or instance.source != Source.TEMPLATE:
if not created:
return
push_accounts_if_need.delay(accounts=(instance,))
create_accounts_activities(instance, action='create')