From b69bf58c6316dea1fe23cdae476485dff89e9d99 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 9 Oct 2017 13:40:28 -0400 Subject: [PATCH] Closes #1548: Automatically populate tenant assignment when adding an IP address from the prefix view --- netbox/ipam/tables.py | 2 +- netbox/templates/ipam/inc/prefix_header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/ipam/tables.py b/netbox/ipam/tables.py index 24bb9b3c2..72c760d34 100644 --- a/netbox/ipam/tables.py +++ b/netbox/ipam/tables.py @@ -71,7 +71,7 @@ IPADDRESS_LINK = """ {% if record.pk %} {{ record.address }} {% elif perms.ipam.add_ipaddress %} - {% if record.0 <= 65536 %}{{ record.0 }}{% else %}Many{% endif %} IP{{ record.0|pluralize }} available + {% if record.0 <= 65536 %}{{ record.0 }}{% else %}Many{% endif %} IP{{ record.0|pluralize }} available {% else %} {% if record.0 <= 65536 %}{{ record.0 }}{% else %}Many{% endif %} IP{{ record.0|pluralize }} available {% endif %} diff --git a/netbox/templates/ipam/inc/prefix_header.html b/netbox/templates/ipam/inc/prefix_header.html index 6deb10e57..d9e017860 100644 --- a/netbox/templates/ipam/inc/prefix_header.html +++ b/netbox/templates/ipam/inc/prefix_header.html @@ -23,7 +23,7 @@
{% if perms.ipam.add_ipaddress %} - + Add an IP Address