Просмотр исходного кода

Fixes #11028 - Enable clearing of the color field for front and rear ports in bulk edit

Patrick Hurrelmann 3 лет назад
Родитель
Сommit
3bd560add8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      netbox/dcim/forms/bulk_edit.py

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

@@ -1218,7 +1218,7 @@ class FrontPortBulkEditForm(
     fieldsets = (
     fieldsets = (
         (None, ('module', 'type', 'label', 'color', 'description', 'mark_connected')),
         (None, ('module', 'type', 'label', 'color', 'description', 'mark_connected')),
     )
     )
-    nullable_fields = ('module', 'label', 'description')
+    nullable_fields = ('module', 'label', 'description', 'color')
 
 
 
 
 class RearPortBulkEditForm(
 class RearPortBulkEditForm(
@@ -1229,7 +1229,7 @@ class RearPortBulkEditForm(
     fieldsets = (
     fieldsets = (
         (None, ('module', 'type', 'label', 'color', 'description', 'mark_connected')),
         (None, ('module', 'type', 'label', 'color', 'description', 'mark_connected')),
     )
     )
-    nullable_fields = ('module', 'label', 'description')
+    nullable_fields = ('module', 'label', 'description', 'color')
 
 
 
 
 class ModuleBayBulkEditForm(
 class ModuleBayBulkEditForm(