Procházet zdrojové kódy

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 před 2 měsíci
rodič
revize
0d1e9d88a8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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):