mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 03:27:21 -06:00
Fix front ports queryset
This commit is contained in:
parent
aad4f58633
commit
60f5371b31
@ -2032,7 +2032,7 @@ class FrontPortCreateForm(ComponentForm):
|
|||||||
# Determine which rear port positions are occupied. These will be excluded from the list of available mappings.
|
# Determine which rear port positions are occupied. These will be excluded from the list of available mappings.
|
||||||
occupied_port_positions = [
|
occupied_port_positions = [
|
||||||
(front_port.rear_port_id, front_port.rear_port_position)
|
(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
|
# Populate rear port choices
|
||||||
|
Loading…
Reference in New Issue
Block a user