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