From c803aaf4d4bc0a5cd502536f1c9e3385ff5d4f67 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 2 Mar 2016 17:21:48 -0500 Subject: [PATCH] Default site to that of parent when adding a child prefix --- netbox/ipam/tables.py | 4 ++-- netbox/templates/ipam/prefix.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/ipam/tables.py b/netbox/ipam/tables.py index a5e499f50..963e0d58f 100644 --- a/netbox/ipam/tables.py +++ b/netbox/ipam/tables.py @@ -21,13 +21,13 @@ PREFIX_LINK = """ {% else %} {% endif %} - {{ record.prefix }} + {{ record.prefix }} """ PREFIX_LINK_BRIEF = """ - {{ record.prefix }} + {{ record.prefix }} """ diff --git a/netbox/templates/ipam/prefix.html b/netbox/templates/ipam/prefix.html index e0b82b750..6ed18ef29 100644 --- a/netbox/templates/ipam/prefix.html +++ b/netbox/templates/ipam/prefix.html @@ -86,7 +86,7 @@
- {% include 'ipam/inc/prefix_table.html' with table=child_prefix_table table_template='panel_table.html' heading='Child Prefixes' %} + {% include 'ipam/inc/prefix_table.html' with table=child_prefix_table table_template='panel_table.html' heading='Child Prefixes' site=prefix.site %}
{% endblock %}