fix imports for netbox v3.5 (#282)
This commit is contained in:
@@ -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.")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user