mirror of https://github.com/jumpserver/jumpserver
fix: 修复系统用户同步同时包含pwd/ssh-key导致创建账号id冲突报错的问题
parent
138adeff76
commit
0f3ddc3bf1
|
@ -25,7 +25,7 @@ def migrate_asset_accounts(apps, schema_editor):
|
||||||
count += len(auth_books)
|
count += len(auth_books)
|
||||||
# auth book 和 account 相同的属性
|
# auth book 和 account 相同的属性
|
||||||
same_attrs = [
|
same_attrs = [
|
||||||
'id', 'username', 'comment', 'date_created', 'date_updated',
|
'username', 'comment', 'date_created', 'date_updated',
|
||||||
'created_by', 'asset_id', 'org_id',
|
'created_by', 'asset_id', 'org_id',
|
||||||
]
|
]
|
||||||
# 认证的属性,可能是 auth_book 的,可能是 system_user 的
|
# 认证的属性,可能是 auth_book 的,可能是 system_user 的
|
||||||
|
|
Loading…
Reference in New Issue