mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-16 12:38:17 -06:00
Fix field ordering
This commit is contained in:
parent
cc4e189b27
commit
fcd407d10b
@ -1647,6 +1647,11 @@ class DeviceBulkEditForm(BootstrapMixin, AddRemoveTagsForm, CustomFieldBulkEditF
|
|||||||
|
|
||||||
class DeviceFilterForm(BootstrapMixin, LocalConfigContextFilterForm, CustomFieldFilterForm):
|
class DeviceFilterForm(BootstrapMixin, LocalConfigContextFilterForm, CustomFieldFilterForm):
|
||||||
model = Device
|
model = Device
|
||||||
|
# Order the form fields, fields not listed are appended
|
||||||
|
field_order = ['q', 'region', 'site', 'rack_group_id', 'rack_id', 'role', 'tenant', 'manufacturer_id',
|
||||||
|
'device_type_id', 'platform', 'status', 'mac_address', 'has_primary_ip', 'console_ports',
|
||||||
|
'console_server_ports', 'power_ports', 'power_outlets', 'interfaces', 'pass_through_ports']
|
||||||
|
|
||||||
q = forms.CharField(
|
q = forms.CharField(
|
||||||
required=False,
|
required=False,
|
||||||
label='Search'
|
label='Search'
|
||||||
@ -1804,6 +1809,8 @@ class DeviceFilterForm(BootstrapMixin, LocalConfigContextFilterForm, CustomField
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bulk device component creation
|
# Bulk device component creation
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user