From f11bb254a5f66701a0a3d436e38699d4a82d31d8 Mon Sep 17 00:00:00 2001 From: Stephen Date: Tue, 4 Apr 2017 16:37:20 +0100 Subject: [PATCH] Only show Custom Fields on IP Address Assign Page if custom fields are set against the ip address (#1031) --- netbox/templates/dcim/ipaddress_assign.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/templates/dcim/ipaddress_assign.html b/netbox/templates/dcim/ipaddress_assign.html index 3312a39c3..e8596158c 100644 --- a/netbox/templates/dcim/ipaddress_assign.html +++ b/netbox/templates/dcim/ipaddress_assign.html @@ -43,12 +43,14 @@ {% render_field form.set_as_primary %} + {% if form.custom_fields %}
Custom Fields
{% render_custom_fields form %}
+ {% endif %}