From 06af24b8a9731f1257893787a71e410d81509de3 Mon Sep 17 00:00:00 2001 From: Alexander Haase Date: Thu, 26 Sep 2024 14:42:27 +0200 Subject: [PATCH] Add return URL to available IPs table link As with other buttons to create objects, the 'x IPs available' button in tables now returns to this URL after the IP address has been created. --- netbox/ipam/tables/ip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/ipam/tables/ip.py b/netbox/ipam/tables/ip.py index 4152efefb..8ec7a5967 100644 --- a/netbox/ipam/tables/ip.py +++ b/netbox/ipam/tables/ip.py @@ -51,7 +51,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 %}