فهرست منبع

Fix front ports queryset

Jeremy Stretch 7 سال پیش
والد
کامیت
60f5371b31
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      netbox/dcim/forms.py

+ 1 - 1
netbox/dcim/forms.py

@@ -2032,7 +2032,7 @@ class FrontPortCreateForm(ComponentForm):
         # Determine which rear port positions are occupied. These will be excluded from the list of available mappings.
         occupied_port_positions = [
             (front_port.rear_port_id, front_port.rear_port_position)
-            for front_port in self.parent.front_port_templates.all()
+            for front_port in self.parent.frontports.all()
         ]
 
         # Populate rear port choices