浏览代码

Fixes #22358: Remove broken and unused function get_0u_devices (#22368)

mburggraf 1 月之前
父节点
当前提交
583ab535e8
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      netbox/dcim/models/racks.py

+ 0 - 3
netbox/dcim/models/racks.py

@@ -638,9 +638,6 @@ class Rack(ContactsMixin, ImageAttachmentsMixin, TrackingModelMixin, RackBase):
 
         return elevation.render(face)
 
-    def get_0u_devices(self):
-        return self.devices.filter(position=0)
-
     def get_utilization(self):
         """
         Determine the utilization rate of the rack and return it as a percentage. Occupied and reserved units both count