mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 09:53:34 -06:00
Closes #8365: Filtering for child devices by parent device
This commit is contained in:
parent
894665b067
commit
780459d2bf
@ -639,6 +639,11 @@ class DeviceFilterSet(PrimaryModelFilterSet, TenancyFilterSet, ContactModelFilte
|
||||
to_field_name='slug',
|
||||
label='Role (slug)',
|
||||
)
|
||||
parent_device_id = django_filters.ModelMultipleChoiceFilter(
|
||||
field_name='parent_bay__device',
|
||||
queryset=Device.objects.all(),
|
||||
label='Parent Device (ID)',
|
||||
)
|
||||
platform_id = django_filters.ModelMultipleChoiceFilter(
|
||||
queryset=Platform.objects.all(),
|
||||
label='Platform (ID)',
|
||||
|
Loading…
Reference in New Issue
Block a user