1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix filtering for platforms, tenant groups

This commit is contained in:
jeremystretch
2021-07-20 15:39:58 -04:00
parent c0bf1576c2
commit 7eef726ee1
6 changed files with 24 additions and 2 deletions

View File

@ -62,6 +62,15 @@ class TenantGroupBulkEditForm(BootstrapMixin, CustomFieldModelBulkEditForm):
nullable_fields = ['parent', 'description']
class TenantGroupFilterForm(BootstrapMixin, CustomFieldModelFilterForm):
model = TenantGroup
parent_id = DynamicModelMultipleChoiceField(
queryset=TenantGroup.objects.all(),
required=False,
label=_('Parent group')
)
#
# Tenants
#