Преглед на файлове

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