From 12c7d83a9178ed8bcde13bee53a9217e23f0b61b Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 7 Feb 2020 12:43:53 -0500 Subject: [PATCH] Fix PowerOutlet migrations --- netbox/dcim/migrations/0093_device_component_ordering.py | 2 +- .../dcim/migrations/0094_device_component_template_ordering.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/migrations/0093_device_component_ordering.py b/netbox/dcim/migrations/0093_device_component_ordering.py index a7d289892..017241c8b 100644 --- a/netbox/dcim/migrations/0093_device_component_ordering.py +++ b/netbox/dcim/migrations/0093_device_component_ordering.py @@ -22,7 +22,7 @@ def naturalize_powerports(apps, schema_editor): def naturalize_poweroutlets(apps, schema_editor): - _update_model_names(apps.get_model('dcim', 'PowerPort')) + _update_model_names(apps.get_model('dcim', 'PowerOutlet')) def naturalize_frontports(apps, schema_editor): diff --git a/netbox/dcim/migrations/0094_device_component_template_ordering.py b/netbox/dcim/migrations/0094_device_component_template_ordering.py index 32ae6e383..fc39f76b2 100644 --- a/netbox/dcim/migrations/0094_device_component_template_ordering.py +++ b/netbox/dcim/migrations/0094_device_component_template_ordering.py @@ -22,7 +22,7 @@ def naturalize_powerporttemplates(apps, schema_editor): def naturalize_poweroutlettemplates(apps, schema_editor): - _update_model_names(apps.get_model('dcim', 'PowerPortTemplate')) + _update_model_names(apps.get_model('dcim', 'PowerOutletTemplate')) def naturalize_frontporttemplates(apps, schema_editor):