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

fix(dcim): Add comments field to MAC Address form

Include the comments field in MACAddressForm field list to allow editing
MAC Address comments via the UI form.

Fixes #21947
Martin Hauser 1 месяц назад
Родитель
Сommit
0d1e9d88a8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/dcim/forms/model_forms.py

+ 1 - 1
netbox/dcim/forms/model_forms.py

@@ -1974,7 +1974,7 @@ class MACAddressForm(PrimaryModelForm):
     class Meta:
         model = MACAddress
         fields = [
-            'mac_address', 'interface', 'vminterface', 'description', 'owner', 'tags',
+            'mac_address', 'interface', 'vminterface', 'description', 'owner', 'comments', 'tags',
         ]
 
     def __init__(self, *args, **kwargs):