renamed display_region to nested_tree #13735

This commit is contained in:
Abhimanyu Saharan 2023-11-10 02:12:39 +05:30
parent d97449560f
commit 2ea37ad221
7 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ register = template.Library()
@register.simple_tag(takes_context=True) @register.simple_tag(takes_context=True)
def display_region(context, obj): def nested_tree(context, obj):
""" """
Renders hierarchical region data for a given object. Renders hierarchical region data for a given object.
""" """

View File

@ -17,7 +17,7 @@
<tr> <tr>
<th scope="row">{% trans "Region" %}</th> <th scope="row">{% trans "Region" %}</th>
<td> <td>
{% display_region object %} {% nested_tree object %}
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -18,7 +18,7 @@
<tr> <tr>
<th scope="row">{% trans "Region" %}</th> <th scope="row">{% trans "Region" %}</th>
<td> <td>
{% display_region object %} {% nested_tree object %}
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -25,7 +25,7 @@
<tr> <tr>
<th scope="row">{% trans "Region" %}</th> <th scope="row">{% trans "Region" %}</th>
<td> <td>
{% display_region rack %} {% nested_tree rack %}
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -30,7 +30,7 @@
<tr> <tr>
<th scope="row">{% trans "Region" %}</th> <th scope="row">{% trans "Region" %}</th>
<td> <td>
{% display_region object %} {% nested_tree object %}
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -48,7 +48,7 @@
<tr> <tr>
<th scope="row">{% trans "Region" %}</th> <th scope="row">{% trans "Region" %}</th>
<td> <td>
{% display_region object %} {% nested_tree object %}
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -17,7 +17,7 @@
<tr> <tr>
<th scope="row">{% trans "Region" %}</th> <th scope="row">{% trans "Region" %}</th>
<td> <td>
{% display_region object %} {% nested_tree object %}
</td> </td>
</tr> </tr>
<tr> <tr>