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

Remove unused arguments from APISelect widget

This commit is contained in:
Jeremy Stretch
2020-08-12 13:57:34 -04:00
parent e9e77fc689
commit 9e14e28d89
2 changed files with 6 additions and 28 deletions

View File

@ -1686,9 +1686,9 @@ class DeviceForm(BootstrapMixin, TenancyForm, CustomFieldModelForm):
help_text="The lowest-numbered unit occupied by the device",
widget=APISelect(
api_url='/api/dcim/racks/{{rack}}/elevation/',
disabled_indicator='device',
additional_query_params={
'face': '$face'
attrs={
'disabled-indicator': 'device',
'data-additional-query-param-face': "[\"$face\"]",
}
)
)
@ -2077,9 +2077,7 @@ class DeviceFilterForm(BootstrapMixin, LocalConfigContextFilterForm, TenancyFilt
role = DynamicModelMultipleChoiceField(
queryset=DeviceRole.objects.all(),
to_field_name='slug',
required=False,
widget=APISelectMultiple(
)
required=False
)
manufacturer = DynamicModelMultipleChoiceField(
queryset=Manufacturer.objects.all(),