Przeglądaj źródła

fixes prechange snapshot #12617

Abhimanyu Saharan 2 lat temu
rodzic
commit
16ee42ac38
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      netbox/ipam/forms/model_forms.py

+ 1 - 0
netbox/ipam/forms/model_forms.py

@@ -379,6 +379,7 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
         interface = self.instance.assigned_object
         if type(interface) in (Interface, VMInterface):
             parent = interface.parent_object
+            parent.snapshot()
             if self.cleaned_data['primary_for_parent']:
                 if ipaddress.address.version == 4:
                     parent.primary_ip4 = ipaddress