From 60f5371b3196b7127f3feb833aa8f37fdbd71bdd Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 30 Oct 2018 14:54:29 -0400 Subject: [PATCH] Fix front ports queryset --- netbox/dcim/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 3650cf0a1..e924979cd 100644 --- a/netbox/dcim/forms.py +++ b/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