Browse Source

perf: 修复发布机因同名账号创建造成的部署异常

pull/11300/head
Eric 1 year ago committed by Bryan
parent
commit
3c9c494979
  1. 5
      apps/terminal/signal_handlers/applet.py

5
apps/terminal/signal_handlers/applet.py

@ -29,10 +29,11 @@ def on_applet_host_create(sender, instance, created=False, **kwargs):
@receiver(post_save, sender=User)
def on_user_create_create_account(sender, instance, created=False, **kwargs):
def on_user_create_create_account(sender, instance: User, created=False, **kwargs):
if not created:
return
if instance.is_service_account:
return
with tmp_to_builtin_org(system=1):
applet_hosts = AppletHost.objects.all()
for host in applet_hosts:

Loading…
Cancel
Save