fix: 修复空库 migrate 的问题

This commit is contained in:
ibuler
2022-11-01 16:18:46 +08:00
parent c9b8c087c7
commit e6d845ae55
2 changed files with 5 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ class OrgModelMixin(models.Model):
sep = '@'
def save(self, *args, **kwargs):
locking_org = getattr(self, 'locking_org', None)
locking_org = getattr(self, 'LOCKING_ORG', None)
if locking_org:
org = Organization.get_instance(locking_org)
else: