Skip to content

Commit 84a9acb

Browse files
committed
Replaced strawberry-django filter() by filter_type()
1 parent 76a76b4 commit 84a9acb

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

netbox_dns/graphql/filters/dnssec_key_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
__all__ = ("NetBoxDNSDNSSECKeyTemplateFilter",)
2424

2525

26-
@strawberry_django.filter(DNSSECKeyTemplate, lookups=True)
26+
@strawberry_django.filter_type(DNSSECKeyTemplate, lookups=True)
2727
class NetBoxDNSDNSSECKeyTemplateFilter(
2828
ContactFilterMixin, TenancyFilterMixin, NetBoxModelFilterMixin
2929
):

netbox_dns/graphql/filters/dnssec_policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
__all__ = ("NetBoxDNSDNSSECPolicyFilter", "PolicyDigestArrayLookup")
2222

2323

24-
@strawberry_django.filter(DNSSECPolicy, lookups=True)
24+
@strawberry_django.filter_type(DNSSECPolicy, lookups=True)
2525
class NetBoxDNSDNSSECPolicyFilter(
2626
ContactFilterMixin, TenancyFilterMixin, NetBoxModelFilterMixin
2727
):

netbox_dns/graphql/filters/nameserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
__all__ = ("NetBoxDNSNameServerFilter",)
1717

1818

19-
@strawberry_django.filter(NameServer, lookups=True)
19+
@strawberry_django.filter_type(NameServer, lookups=True)
2020
class NetBoxDNSNameServerFilter(
2121
ContactFilterMixin, TenancyFilterMixin, NetBoxModelFilterMixin
2222
):

netbox_dns/graphql/filters/record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
__all__ = ("NetBoxDNSRecordFilter",)
2525

2626

27-
@strawberry_django.filter(Record, lookups=True)
27+
@strawberry_django.filter_type(Record, lookups=True)
2828
class NetBoxDNSRecordFilter(
2929
ContactFilterMixin, TenancyFilterMixin, NetBoxModelFilterMixin
3030
):

netbox_dns/graphql/filters/record_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
__all__ = ("NetBoxDNSRecordTemplateFilter",)
2121

2222

23-
@strawberry_django.filter(RecordTemplate, lookups=True)
23+
@strawberry_django.filter_type(RecordTemplate, lookups=True)
2424
class NetBoxDNSRecordTemplateFilter(
2525
ContactFilterMixin, TenancyFilterMixin, NetBoxModelFilterMixin
2626
):

netbox_dns/graphql/filters/registrar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
__all__ = ("NetBoxDNSRegistrarFilter",)
1616

1717

18-
@strawberry_django.filter(Registrar, lookups=True)
18+
@strawberry_django.filter_type(Registrar, lookups=True)
1919
class NetBoxDNSRegistrarFilter(NetBoxModelFilterMixin):
2020
name: FilterLookup[str] | None = strawberry_django.filter_field()
2121
description: FilterLookup[str] | None = strawberry_django.filter_field()

netbox_dns/graphql/filters/registration_contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
__all__ = ("NetBoxDNSRegistrationContactFilter",)
1010

1111

12-
@strawberry_django.filter(RegistrationContact, lookups=True)
12+
@strawberry_django.filter_type(RegistrationContact, lookups=True)
1313
class NetBoxDNSRegistrationContactFilter(NetBoxModelFilterMixin):
1414
name: FilterLookup[str] | None = strawberry_django.filter_field()
1515
description: FilterLookup[str] | None = strawberry_django.filter_field()

netbox_dns/graphql/filters/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
__all__ = ("NetBoxDNSViewFilter",)
1717

1818

19-
@strawberry_django.filter(View, lookups=True)
19+
@strawberry_django.filter_type(View, lookups=True)
2020
class NetBoxDNSViewFilter(
2121
ContactFilterMixin, TenancyFilterMixin, NetBoxModelFilterMixin
2222
):

netbox_dns/graphql/filters/zone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
__all__ = ("NetBoxDNSZoneFilter",)
2424

2525

26-
@strawberry_django.filter(Zone, lookups=True)
26+
@strawberry_django.filter_type(Zone, lookups=True)
2727
class NetBoxDNSZoneFilter(
2828
ContactFilterMixin, TenancyFilterMixin, NetBoxModelFilterMixin
2929
):

netbox_dns/graphql/filters/zone_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
__all__ = ("NetBoxDNSZoneTemplateFilter",)
2222

2323

24-
@strawberry_django.filter(ZoneTemplate, lookups=True)
24+
@strawberry_django.filter_type(ZoneTemplate, lookups=True)
2525
class NetBoxDNSZoneTemplateFilter(
2626
ContactFilterMixin, TenancyFilterMixin, NetBoxModelFilterMixin
2727
):

0 commit comments

Comments
 (0)