mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
18981 fix tests
This commit is contained in:
parent
86a321b6b2
commit
ddf580a6e6
@ -171,13 +171,15 @@ class VirtualMachineFilterSet(
|
||||
name = MultiValueCharFilter(
|
||||
lookup_expr='iexact'
|
||||
)
|
||||
role_id = django_filters.ModelMultipleChoiceFilter(
|
||||
role_id = TreeNodeMultipleChoiceFilter(
|
||||
queryset=DeviceRole.objects.all(),
|
||||
lookup_expr='in',
|
||||
label=_('Role (ID)'),
|
||||
)
|
||||
role = django_filters.ModelMultipleChoiceFilter(
|
||||
field_name='role__slug',
|
||||
role = TreeNodeMultipleChoiceFilter(
|
||||
field_name='role',
|
||||
queryset=DeviceRole.objects.all(),
|
||||
lookup_expr='in',
|
||||
to_field_name='slug',
|
||||
label=_('Role (slug)'),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user