Abhimanyu Saharan 2 лет назад
Родитель
Сommit
16ee42ac38
1 измененных файлов с 1 добавлено и 0 удалено
  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