fix: 修复系统用户同步同时包含pwd/ssh-key导致创建账号id冲突报错的问题

pull/11695/head
Bai 2023-09-25 16:19:02 +08:00 committed by Bryan
parent e4a14917fa
commit f2e2c91856
1 changed files with 1 additions and 1 deletions

View File

@ -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 的