From b51ad05a4be7efd00465280c7b2e4ee259e98106 Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Fri, 1 Nov 2019 20:18:36 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E5=A4=8D=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=20Default=20=E8=8A=82=E7=82=B9=E7=9A=84=20Bug?= =?UTF-8?q?=EF=BC=88=E5=8E=9F=E5=9B=A0=EF=BC=9A=E5=9C=A8=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E7=BB=84=E7=BB=87=E4=B8=8B=20Default=20=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=9A=84=20key=201=20=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=EF=BC=895?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/models/node.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/assets/models/node.py b/apps/assets/models/node.py index bb5369ec3..e6ceb1f66 100644 --- a/apps/assets/models/node.py +++ b/apps/assets/models/node.py @@ -355,9 +355,7 @@ class SomeNodesMixin: with transaction.atomic(): if not ori_org.is_real(): return cls.default_node() - set_current_org(Organization.root()) key = cls.get_next_org_root_node_key() - set_current_org(ori_org) root = cls.objects.create(key=key, value=ori_org.name) return root