From ae0879eec4c2244a37d177a1f168755ea3fbd4cc Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 22 Jun 2020 16:36:06 -0400 Subject: [PATCH] Disable editing assigned interface under IPAddress form --- netbox/templates/ipam/ipaddress_edit.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/netbox/templates/ipam/ipaddress_edit.html b/netbox/templates/ipam/ipaddress_edit.html index d8902595a..8583ec160 100644 --- a/netbox/templates/ipam/ipaddress_edit.html +++ b/netbox/templates/ipam/ipaddress_edit.html @@ -28,21 +28,28 @@ {% render_field form.tenant %} - {% if obj.interface %} + {% if obj.assigned_object %}
Interface Assignment
- + +
+
+ +
- {% render_field form.interface %} {% render_field form.primary_for_parent %}