mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-03 08:25:04 +00:00
fix: 修复生成假数据脚本错误
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user