mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Allow unrestricted retrieval of MPTT ancestors
This commit is contained in:
parent
ffa3a229b5
commit
1e259f3043
@ -12,7 +12,7 @@
|
|||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li><a href="{% url 'dcim:site_list' %}">Sites</a></li>
|
<li><a href="{% url 'dcim:site_list' %}">Sites</a></li>
|
||||||
{% if site.region %}
|
{% if site.region %}
|
||||||
{% for region in site.region.get_ancestors %}
|
{% for region in site.region.get_ancestors.unrestricted %}
|
||||||
<li><a href="{{ region.get_absolute_url }}">{{ region }}</a></li>
|
<li><a href="{{ region.get_absolute_url }}">{{ region }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li><a href="{{ site.region.get_absolute_url }}">{{ site.region }}</a></li>
|
<li><a href="{{ site.region.get_absolute_url }}">{{ site.region }}</a></li>
|
||||||
@ -86,7 +86,7 @@
|
|||||||
<td>Region</td>
|
<td>Region</td>
|
||||||
<td>
|
<td>
|
||||||
{% if site.region %}
|
{% if site.region %}
|
||||||
{% for region in site.region.get_ancestors %}
|
{% for region in site.region.get_ancestors.unrestricted %}
|
||||||
<a href="{{ region.get_absolute_url }}">{{ region }}</a>
|
<a href="{{ region.get_absolute_url }}">{{ region }}</a>
|
||||||
<i class="fa fa-angle-right"></i>
|
<i class="fa fa-angle-right"></i>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user