Move q filter to NetBoxModelFilterSet

This commit is contained in:
jeremystretch
2022-03-11 16:16:58 -05:00
parent 59aba52b03
commit 245cff887c
7 changed files with 10 additions and 145 deletions

View File

@@ -39,10 +39,6 @@ class TenantGroupFilterSet(OrganizationalModelFilterSet):
class TenantFilterSet(NetBoxModelFilterSet):
q = django_filters.CharFilter(
method='search',
label='Search',
)
group_id = TreeNodeMultipleChoiceFilter(
queryset=TenantGroup.objects.all(),
field_name='group',
@@ -130,10 +126,6 @@ class ContactRoleFilterSet(OrganizationalModelFilterSet):
class ContactFilterSet(NetBoxModelFilterSet):
q = django_filters.CharFilter(
method='search',
label='Search',
)
group_id = TreeNodeMultipleChoiceFilter(
queryset=ContactGroup.objects.all(),
field_name='group',