Browse Source

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

pull/13336/head
Bai 6 months ago committed by Bryan
parent
commit
4e8d7df005
  1. 2
      apps/perms/migrations/0030_auto_20220816_1132.py

2
apps/perms/migrations/0030_auto_20220816_1132.py

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

Loading…
Cancel
Save