Skip to content

Commit 78ec3a6

Browse files
arthansonjeremystretch
authored andcommitted
11504 add rack filter to elevation
1 parent 24650d9 commit 78ec3a6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

netbox/dcim/forms/filtersets.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,15 @@ class RackFilterForm(TenancyFilterForm, ContactModelFilterForm, NetBoxModelFilte
298298

299299

300300
class RackElevationFilterForm(RackFilterForm):
301+
fieldsets = (
302+
(None, ('q', 'filter_id', 'tag')),
303+
('Location', ('region_id', 'site_group_id', 'site_id', 'location_id', 'id')),
304+
('Function', ('status', 'role_id')),
305+
('Hardware', ('type', 'width', 'serial', 'asset_tag')),
306+
('Tenant', ('tenant_group_id', 'tenant_id')),
307+
('Contacts', ('contact', 'contact_role', 'contact_group')),
308+
('Weight', ('weight', 'max_weight', 'weight_unit')),
309+
)
301310
id = DynamicModelMultipleChoiceField(
302311
queryset=Rack.objects.all(),
303312
label=_('Rack'),

0 commit comments

Comments
 (0)