fix imports for netbox v3.5 (#282)

This commit is contained in:
mattieserver
2023-04-28 13:56:55 +02:00
committed by GitHub
parent 3671bbbc78
commit 2aa3317a9b
+4 -4
View File
@@ -13,12 +13,13 @@ from tenancy.models import TenantGroup, Tenant
from tenancy.forms import TenancyFilterForm from tenancy.forms import TenancyFilterForm
from django.conf import settings from django.conf import settings
from netbox.forms import NetBoxModelFilterSetForm, NetBoxModelForm from netbox.forms import NetBoxModelFilterSetForm, NetBoxModelForm
from utilities.forms import ( from utilities.forms.fields import (
TagFilterField, TagFilterField,
DynamicModelMultipleChoiceField, DynamicModelMultipleChoiceField,
MultipleChoiceField, MultipleChoiceField
widgets,
) )
from .models import IndividualOptions from .models import IndividualOptions
class DeviceFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm): class DeviceFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
@@ -178,7 +179,6 @@ class IndividualOptionsForm(NetBoxModelForm):
label=_("Preselected Tags"), label=_("Preselected Tags"),
queryset=Device.tags.all(), queryset=Device.tags.all(),
required=False, required=False,
widget=widgets.StaticSelectMultiple,
help_text=_("Select Tags that you want to have " help_text=_("Select Tags that you want to have "
"preselected in the filter tab.") "preselected in the filter tab.")
) )