Skip to content

Commit f743f2c

Browse files
arthansonjeremystretch
authored andcommitted
11272 make position field work correctly when internationalizion enabled
1 parent 3c0a3ca commit f743f2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

netbox/dcim/forms/model_forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,13 @@ class DeviceForm(TenancyForm, NetBoxModelForm):
401401
position = forms.DecimalField(
402402
required=False,
403403
help_text=_("The lowest-numbered unit occupied by the device"),
404+
localize=True,
404405
widget=APISelect(
405406
api_url='/api/dcim/racks/{{rack}}/elevation/',
406407
attrs={
407408
'disabled-indicator': 'device',
408409
'data-dynamic-params': '[{"fieldName":"face","queryParam":"face"}]'
409-
}
410+
},
410411
)
411412
)
412413
device_type = DynamicModelChoiceField(

0 commit comments

Comments
 (0)