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

11272 make position field work correctly when internationalizion enabled

This commit is contained in:
Arthur
2023-08-17 15:18:52 -07:00
committed by Jeremy Stretch
parent 3c0a3ca703
commit f743f2cfb8

View File

@@ -401,12 +401,13 @@ class DeviceForm(TenancyForm, NetBoxModelForm):
position = forms.DecimalField(
required=False,
help_text=_("The lowest-numbered unit occupied by the device"),
localize=True,
widget=APISelect(
api_url='/api/dcim/racks/{{rack}}/elevation/',
attrs={
'disabled-indicator': 'device',
'data-dynamic-params': '[{"fieldName":"face","queryParam":"face"}]'
}
},
)
)
device_type = DynamicModelChoiceField(