mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
15410 removed legacy filters
This commit is contained in:
parent
87109f5539
commit
47d7576a00
@ -698,9 +698,6 @@ class DeviceTypeComponentFilterSet(django_filters.FilterSet):
|
||||
label=_('Device type (ID)'),
|
||||
)
|
||||
|
||||
# TODO: Remove in v4.1
|
||||
devicetype_id = device_type_id
|
||||
|
||||
def search(self, queryset, name, value):
|
||||
if not value.strip():
|
||||
return queryset
|
||||
@ -717,9 +714,6 @@ class ModularDeviceTypeComponentFilterSet(DeviceTypeComponentFilterSet):
|
||||
label=_('Module type (ID)'),
|
||||
)
|
||||
|
||||
# TODO: Remove in v4.1
|
||||
moduletype_id = module_type_id
|
||||
|
||||
|
||||
class ConsolePortTemplateFilterSet(ChangeLoggedModelFilterSet, ModularDeviceTypeComponentFilterSet):
|
||||
|
||||
|
@ -589,10 +589,6 @@ class ConfigContextFilterSet(ChangeLoggedModelFilterSet):
|
||||
label=_('Data file (ID)'),
|
||||
)
|
||||
|
||||
# TODO: Remove in v4.1
|
||||
role = device_role
|
||||
role_id = device_role_id
|
||||
|
||||
class Meta:
|
||||
model = ConfigContext
|
||||
fields = ('id', 'name', 'is_active', 'description', 'weight', 'auto_sync_enabled', 'data_synced')
|
||||
|
@ -912,10 +912,6 @@ class VLANGroupFilterSet(OrganizationalModelFilterSet):
|
||||
method='filter_scope'
|
||||
)
|
||||
|
||||
# TODO: Remove in v4.1
|
||||
sitegroup = site_group
|
||||
clustergroup = cluster_group
|
||||
|
||||
class Meta:
|
||||
model = VLANGroup
|
||||
fields = ('id', 'name', 'slug', 'min_vid', 'max_vid', 'description', 'scope_id')
|
||||
@ -1106,10 +1102,6 @@ class ServiceFilterSet(NetBoxModelFilterSet):
|
||||
lookup_expr='contains'
|
||||
)
|
||||
|
||||
# TODO: Remove in v4.1
|
||||
ipaddress = ip_address
|
||||
ipaddress_id = ip_address_id
|
||||
|
||||
class Meta:
|
||||
model = Service
|
||||
fields = ('id', 'name', 'protocol', 'description')
|
||||
|
@ -190,10 +190,6 @@ class IKEPolicyFilterSet(NetBoxModelFilterSet):
|
||||
to_field_name='name'
|
||||
)
|
||||
|
||||
# TODO: Remove in v4.1
|
||||
proposal = ike_proposal
|
||||
proposal_id = ike_proposal_id
|
||||
|
||||
class Meta:
|
||||
model = IKEPolicy
|
||||
fields = ('id', 'name', 'preshared_key', 'description')
|
||||
@ -255,10 +251,6 @@ class IPSecPolicyFilterSet(NetBoxModelFilterSet):
|
||||
to_field_name='name'
|
||||
)
|
||||
|
||||
# TODO: Remove in v4.1
|
||||
proposal = ipsec_proposal
|
||||
proposal_id = ipsec_proposal_id
|
||||
|
||||
class Meta:
|
||||
model = IPSecPolicy
|
||||
fields = ('id', 'name', 'description')
|
||||
|
Loading…
Reference in New Issue
Block a user