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:
@@ -32,8 +32,8 @@ def populate_cable_paths(apps, schema_editor):
|
|||||||
|
|
||||||
cable_paths.append(cablepath)
|
cable_paths.append(cablepath)
|
||||||
|
|
||||||
# Bulk create the termination objects
|
# Bulk update all CableTerminations
|
||||||
CablePath.objects.bulk_update(cable_paths, fields=('path', 'is_complete'), batch_size=100)
|
CablePath.objects.bulk_update(cable_paths, fields=('path', '_nodes', 'is_complete'), batch_size=100)
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
Reference in New Issue
Block a user