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

Add RearPortTemplate power_port field

This commit is contained in:
Jeremy Stretch
2019-09-20 15:16:14 -04:00
parent 5266fc67c9
commit 60b70b6c7b
2 changed files with 8 additions and 1 deletions

View File

@ -919,6 +919,11 @@ class InterfaceTemplateImportForm(ComponentTemplateImportForm):
class FrontPortTemplateImportForm(ComponentTemplateImportForm):
power_port = forms.ModelChoiceField(
queryset=RearPortTemplate.objects.all(),
to_field_name='name',
required=False
)
class Meta:
model = FrontPortTemplate