فهرست منبع

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 ماه پیش
والد
کامیت
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:
     class Meta:
         model = MACAddress
         model = MACAddress
         fields = [
         fields = [
-            'mac_address', 'interface', 'vminterface', 'description', 'owner', 'tags',
+            'mac_address', 'interface', 'vminterface', 'description', 'owner', 'comments', 'tags',
         ]
         ]
 
 
     def __init__(self, *args, **kwargs):
     def __init__(self, *args, **kwargs):