瀏覽代碼

Fixes #14517: Ensure reservations tab is always displayed under rack view

Jeremy Stretch 2 年之前
父節點
當前提交
b955751349
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 0
      docs/release-notes/version-3.6.md
  2. 1 2
      netbox/dcim/views.py

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

@@ -9,6 +9,7 @@
 
 ### Bug Fixes
 
+* [#14517](https://github.com/netbox-community/netbox/issues/14517) - Ensure reservations tab is always displayed under rack view
 * [#14549](https://github.com/netbox-community/netbox/issues/14549) - Fix association of job results when executing scripts via `runscript` management command
 * [#14560](https://github.com/netbox-community/netbox/issues/14560) - Do not escape exclamation marks in custom link URLs
 * [#14575](https://github.com/netbox-community/netbox/issues/14575) - Fix display of the tags column under VDC table

+ 1 - 2
netbox/dcim/views.py

@@ -695,8 +695,7 @@ class RackRackReservationsView(generic.ObjectChildrenView):
         label=_('Reservations'),
         badge=lambda obj: obj.reservations.count(),
         permission='dcim.view_rackreservation',
-        weight=510,
-        hide_if_empty=True
+        weight=510
     )
 
     def get_children(self, request, parent):