Преглед на файлове

Fix PowerOutlet migrations

Jeremy Stretch преди 6 години
родител
ревизия
12c7d83a91
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      netbox/dcim/migrations/0093_device_component_ordering.py
  2. 1 1
      netbox/dcim/migrations/0094_device_component_template_ordering.py

+ 1 - 1
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):

+ 1 - 1
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):