1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Standardized naming of reverse relationships from component templates to DeviceType

This commit is contained in:
Jeremy Stretch
2018-11-02 11:55:52 -04:00
parent cf9c8f35a0
commit 3ea2978df4
5 changed files with 58 additions and 38 deletions

View File

@@ -807,7 +807,7 @@ class FrontPortTemplateCreateForm(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.frontport_templates.all()
]
# Populate rear port choices