Jelajahi Sumber

12011 fix module bay bulk create

Arthur 2 tahun lalu
induk
melakukan
0a2ae90411
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      netbox/dcim/forms/bulk_create.py

+ 2 - 2
netbox/dcim/forms/bulk_create.py

@@ -103,9 +103,9 @@ class RearPortBulkCreateForm(
 
 
 class ModuleBayBulkCreateForm(DeviceBulkAddComponentForm):
 class ModuleBayBulkCreateForm(DeviceBulkAddComponentForm):
     model = ModuleBay
     model = ModuleBay
-    field_order = ('name', 'label', 'position_pattern', 'description', 'tags')
+    field_order = ('name', 'label', 'position', 'description', 'tags')
     replication_fields = ('name', 'label', 'position')
     replication_fields = ('name', 'label', 'position')
-    position_pattern = ExpandableNameField(
+    position = ExpandableNameField(
         label=_('Position'),
         label=_('Position'),
         required=False,
         required=False,
         help_text=_('Alphanumeric ranges are supported. (Must match the number of names being created.)')
         help_text=_('Alphanumeric ranges are supported. (Must match the number of names being created.)')