Skip to content

Commit 61e2073

Browse files
committed
#12067: Fix ordering for JobResult replication
1 parent 82080ef commit 61e2073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/core/migrations/0004_replicate_jobresults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def replicate_jobresults(apps, schema_editor):
99
JobResult = apps.get_model('extras', 'JobResult')
1010

1111
jobs = []
12-
for job_result in JobResult.objects.iterator(chunk_size=100):
12+
for job_result in JobResult.objects.order_by('pk').iterator(chunk_size=100):
1313
jobs.append(
1414
Job(
1515
object_type=job_result.obj_type,

0 commit comments

Comments
 (0)