fix: 修复生成假数据脚本错误

This commit is contained in:
xinwen
2021-03-05 14:29:54 +08:00
committed by 老广
parent 840e5e8863
commit 7f42e59714
2 changed files with 3 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ class FakeDataGenerator:
seed()
def switch_org(self, org_id):
o = Organization.get_instance(org_id, default=True)
o = Organization.get_instance(org_id, default=Organization.default())
if o:
o.change_to()
print('Current org is: {}'.format(o))