Skip to content

Commit

Permalink
renamed display_region to nested_tree #13735
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Nov 9, 2023
1 parent d974495 commit 2ea37ad
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion netbox/dcim/templatetags/mptt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/device.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h5 class="card-header">{% trans "Device" %}</h5>
<tr>
<th scope="row">{% trans "Region" %}</th>
<td>
{% display_region object %}
{% nested_tree object %}
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/rack.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h5 class="card-header">
<tr>
<th scope="row">{% trans "Region" %}</th>
<td>
{% display_region object %}
{% nested_tree object %}
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/rackreservation.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h5 class="card-header">
<tr>
<th scope="row">{% trans "Region" %}</th>
<td>
{% display_region rack %}
{% nested_tree rack %}
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/dcim/site.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h5 class="card-header">{% trans "Site" %}</h5>
<tr>
<th scope="row">{% trans "Region" %}</th>
<td>
{% display_region object %}
{% nested_tree object %}
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/ipam/prefix.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h5 class="card-header">{% trans "Prefix" %}</h5>
<tr>
<th scope="row">{% trans "Region" %}</th>
<td>
{% display_region object %}
{% nested_tree object %}
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/ipam/vlan.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h5 class="card-header">
<tr>
<th scope="row">{% trans "Region" %}</th>
<td>
{% display_region object %}
{% nested_tree object %}
</td>
</tr>
<tr>
Expand Down

0 comments on commit 2ea37ad

Please sign in to comment.