mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 19:18:16 -06:00
15541 update InventoryItemTemplateForm
This commit is contained in:
parent
b6f8532eb6
commit
e788266b38
@ -1010,7 +1010,7 @@ class InventoryItemTemplateForm(ComponentTemplateForm):
|
|||||||
query_params={
|
query_params={
|
||||||
'device_type_id': '$device_type'
|
'device_type_id': '$device_type'
|
||||||
},
|
},
|
||||||
label=_('Console port')
|
label=_('Console port template')
|
||||||
)
|
)
|
||||||
consoleserverporttemplate = DynamicModelChoiceField(
|
consoleserverporttemplate = DynamicModelChoiceField(
|
||||||
queryset=ConsoleServerPortTemplate.objects.all(),
|
queryset=ConsoleServerPortTemplate.objects.all(),
|
||||||
@ -1018,7 +1018,7 @@ class InventoryItemTemplateForm(ComponentTemplateForm):
|
|||||||
query_params={
|
query_params={
|
||||||
'device_type_id': '$device_type'
|
'device_type_id': '$device_type'
|
||||||
},
|
},
|
||||||
label=_('Console server port')
|
label=_('Console server port template')
|
||||||
)
|
)
|
||||||
frontporttemplate = DynamicModelChoiceField(
|
frontporttemplate = DynamicModelChoiceField(
|
||||||
queryset=FrontPortTemplate.objects.all(),
|
queryset=FrontPortTemplate.objects.all(),
|
||||||
@ -1026,7 +1026,7 @@ class InventoryItemTemplateForm(ComponentTemplateForm):
|
|||||||
query_params={
|
query_params={
|
||||||
'device_type_id': '$device_type'
|
'device_type_id': '$device_type'
|
||||||
},
|
},
|
||||||
label=_('Front port')
|
label=_('Front port template')
|
||||||
)
|
)
|
||||||
interfacetemplate = DynamicModelChoiceField(
|
interfacetemplate = DynamicModelChoiceField(
|
||||||
queryset=InterfaceTemplate.objects.all(),
|
queryset=InterfaceTemplate.objects.all(),
|
||||||
@ -1042,7 +1042,7 @@ class InventoryItemTemplateForm(ComponentTemplateForm):
|
|||||||
query_params={
|
query_params={
|
||||||
'device_type_id': '$device_type'
|
'device_type_id': '$device_type'
|
||||||
},
|
},
|
||||||
label=_('Power outlet')
|
label=_('Power outlet template')
|
||||||
)
|
)
|
||||||
powerporttemplate = DynamicModelChoiceField(
|
powerporttemplate = DynamicModelChoiceField(
|
||||||
queryset=PowerPortTemplate.objects.all(),
|
queryset=PowerPortTemplate.objects.all(),
|
||||||
@ -1050,7 +1050,7 @@ class InventoryItemTemplateForm(ComponentTemplateForm):
|
|||||||
query_params={
|
query_params={
|
||||||
'device_type_id': '$device_type'
|
'device_type_id': '$device_type'
|
||||||
},
|
},
|
||||||
label=_('Power port')
|
label=_('Power port template')
|
||||||
)
|
)
|
||||||
rearporttemplate = DynamicModelChoiceField(
|
rearporttemplate = DynamicModelChoiceField(
|
||||||
queryset=RearPortTemplate.objects.all(),
|
queryset=RearPortTemplate.objects.all(),
|
||||||
@ -1058,7 +1058,7 @@ class InventoryItemTemplateForm(ComponentTemplateForm):
|
|||||||
query_params={
|
query_params={
|
||||||
'device_type_id': '$device_type'
|
'device_type_id': '$device_type'
|
||||||
},
|
},
|
||||||
label=_('Rear port')
|
label=_('Rear port template')
|
||||||
)
|
)
|
||||||
|
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
|
Loading…
Reference in New Issue
Block a user