From 3c9c494979390d6984fb78f92561ecb122759f1e Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 16 Aug 2023 15:04:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E5=A4=8D=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=9C=BA=E5=9B=A0=E5=90=8C=E5=90=8D=E8=B4=A6=E5=8F=B7=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E9=80=A0=E6=88=90=E7=9A=84=E9=83=A8=E7=BD=B2=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/signal_handlers/applet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/terminal/signal_handlers/applet.py b/apps/terminal/signal_handlers/applet.py index 912510901..3b1239901 100644 --- a/apps/terminal/signal_handlers/applet.py +++ b/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: