mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #12109: Fix migration error when replicating more than 100 job results
This commit is contained in:
@@ -27,6 +27,7 @@ def replicate_jobresults(apps, schema_editor):
|
||||
)
|
||||
if len(jobs) == 100:
|
||||
Job.objects.bulk_create(jobs)
|
||||
jobs = []
|
||||
if jobs:
|
||||
Job.objects.bulk_create(jobs)
|
||||
|
||||
|
Reference in New Issue
Block a user