mirror of https://github.com/jumpserver/jumpserver
perf: create account add activity log
parent
674ea7142f
commit
b5aeb24ae9
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue