fix: v2->v3 The issue of authorized accounts displaying as empty when there are more than 10,000 authorization rules.

pull/13336/head
Bai 2024-05-28 16:04:15 +08:00 committed by Bryan
parent 5d1829b998
commit 4e8d7df005
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ def migrate_system_user_to_accounts(apps, schema_editor):
bulk_size = 10000
while True:
asset_permissions = asset_permission_model.objects \
.prefetch_related('system_users')[count:bulk_size]
.prefetch_related('system_users')[count:count+bulk_size]
if not asset_permissions:
break