1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix CablePath migration

This commit is contained in:
jeremystretch
2022-05-13 16:46:55 -04:00
parent 906c3dca8b
commit 399afffddf

View File

@@ -32,8 +32,8 @@ def populate_cable_paths(apps, schema_editor):
cable_paths.append(cablepath)
# Bulk create the termination objects
CablePath.objects.bulk_update(cable_paths, fields=('path', 'is_complete'), batch_size=100)
# Bulk update all CableTerminations
CablePath.objects.bulk_update(cable_paths, fields=('path', '_nodes', 'is_complete'), batch_size=100)
class Migration(migrations.Migration):