Преглед изворни кода

Fixes #6778: Rack reservation should display rack's location

jeremystretch пре 4 година
родитељ
комит
c5e74635dd
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 1 0
      docs/release-notes/version-2.11.md
  2. 3 3
      netbox/templates/dcim/rackreservation.html

+ 1 - 0
docs/release-notes/version-2.11.md

@@ -6,6 +6,7 @@
 
 
 * [#5442](https://github.com/netbox-community/netbox/issues/5442) - Fix assignment of permissions based on LDAP groups
 * [#5442](https://github.com/netbox-community/netbox/issues/5442) - Fix assignment of permissions based on LDAP groups
 * [#6773](https://github.com/netbox-community/netbox/issues/6773) - Add missing `display` field to rack unit serializer
 * [#6773](https://github.com/netbox-community/netbox/issues/6773) - Add missing `display` field to rack unit serializer
+* [#6778](https://github.com/netbox-community/netbox/issues/6778) - Rack reservation should display rack's location
 
 
 ---
 ---
 
 

+ 3 - 3
netbox/templates/dcim/rackreservation.html

@@ -39,10 +39,10 @@
                         </td>
                         </td>
                     </tr>
                     </tr>
                     <tr>
                     <tr>
-                        <td>Group</td>
+                        <td>Location</td>
                         <td>
                         <td>
-                            {% if rack.group %}
-                                <a href="{{ rack.group.get_absolute_url }}">{{ rack.group }}</a>
+                            {% if rack.location %}
+                                <a href="{{ rack.location.get_absolute_url }}">{{ rack.location }}</a>
                             {% else %}
                             {% else %}
                                 <span class="text-muted">None</span>
                                 <span class="text-muted">None</span>
                             {% endif %}
                             {% endif %}