diff --git a/netbox/dcim/templatetags/mptt.py b/netbox/dcim/templatetags/mptt.py index 92b84375373..9b76e525c07 100644 --- a/netbox/dcim/templatetags/mptt.py +++ b/netbox/dcim/templatetags/mptt.py @@ -6,7 +6,7 @@ @register.simple_tag(takes_context=True) -def display_region(context, obj): +def nested_tree(context, obj): """ Renders hierarchical region data for a given object. """ diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index a9b31650d50..3367f17eb5e 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -17,7 +17,7 @@
{% trans "Device" %}
{% trans "Region" %} - {% display_region object %} + {% nested_tree object %} diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html index d40d0c9693c..fa48470e3ea 100644 --- a/netbox/templates/dcim/rack.html +++ b/netbox/templates/dcim/rack.html @@ -18,7 +18,7 @@
{% trans "Region" %} - {% display_region object %} + {% nested_tree object %} diff --git a/netbox/templates/dcim/rackreservation.html b/netbox/templates/dcim/rackreservation.html index 8b67b2d611b..08eb1e91275 100644 --- a/netbox/templates/dcim/rackreservation.html +++ b/netbox/templates/dcim/rackreservation.html @@ -25,7 +25,7 @@
{% trans "Region" %} - {% display_region rack %} + {% nested_tree rack %} diff --git a/netbox/templates/dcim/site.html b/netbox/templates/dcim/site.html index fc8c78cdeee..56a675ea9d7 100644 --- a/netbox/templates/dcim/site.html +++ b/netbox/templates/dcim/site.html @@ -30,7 +30,7 @@
{% trans "Site" %}
{% trans "Region" %} - {% display_region object %} + {% nested_tree object %} diff --git a/netbox/templates/ipam/prefix.html b/netbox/templates/ipam/prefix.html index d956a5940ad..c71707da7ca 100644 --- a/netbox/templates/ipam/prefix.html +++ b/netbox/templates/ipam/prefix.html @@ -48,7 +48,7 @@
{% trans "Prefix" %}
{% trans "Region" %} - {% display_region object %} + {% nested_tree object %} diff --git a/netbox/templates/ipam/vlan.html b/netbox/templates/ipam/vlan.html index c6bf2b76557..3f9cc2d25f0 100644 --- a/netbox/templates/ipam/vlan.html +++ b/netbox/templates/ipam/vlan.html @@ -17,7 +17,7 @@
{% trans "Region" %} - {% display_region object %} + {% nested_tree object %}