This commit is contained in:
feng626
2022-08-29 19:53:04 +08:00
138 changed files with 4665 additions and 1147 deletions

View File

@@ -45,7 +45,7 @@ class OrgManager(models.Manager):
org = get_current_org()
for obj in objs:
if org.is_root():
if not self.org_id:
if not obj.org_id:
raise ValidationError('Please save in a organization')
else:
obj.org_id = org.id