fix: retrace existing patchpanel cable paths

This commit is contained in:
MrBlake committed 2026-08-06 15:38:06 +02:00
1 parent e74d8fba31
commit 8c6c48531e
9 files changed
+119 -22

No files matched your search

@@ -0,0 +1,19 @@
from django.db import migrations
def repair_mappings_and_paths(apps, schema_editor):
# Runtime models are intentional here: NetBox's CablePath.retrace() is
# required to refresh the denormalized path data after migration 0005.
from netbox_utilities.patchpanel import repair_existing_patchpanels
repair_existing_patchpanels()
class Migration(migrations.Migration):
dependencies = [
("netbox_utilities", "0005_fix_patchpanel_port_number_mappings"),
]
operations = [
migrations.RunPython(repair_mappings_and_paths, migrations.RunPython.noop),
]