mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Fix CablePath migration
This commit is contained in:
parent
906c3dca8b
commit
399afffddf
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user