Skip to content

Commit 1b83d32

Browse files
authored
Merge pull request #20274 from netbox-community/20215-configcontextfilter-requires-filter-fields
Fixes #20215: Make ConfigContextFilter filters optional
2 parents af6f4ce + 2ba2864 commit 1b83d32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netbox/extras/graphql/filters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@
4343

4444
@strawberry_django.filter_type(models.ConfigContext, lookups=True)
4545
class ConfigContextFilter(BaseObjectTypeFilterMixin, SyncedDataFilterMixin, ChangeLogFilterMixin):
46-
name: FilterLookup[str] = strawberry_django.filter_field()
46+
name: FilterLookup[str] | None = strawberry_django.filter_field()
4747
weight: Annotated['IntegerLookup', strawberry.lazy('netbox.graphql.filter_lookups')] | None = (
4848
strawberry_django.filter_field()
4949
)
50-
description: FilterLookup[str] = strawberry_django.filter_field()
51-
is_active: FilterLookup[bool] = strawberry_django.filter_field()
50+
description: FilterLookup[str] | None = strawberry_django.filter_field()
51+
is_active: FilterLookup[bool] | None = strawberry_django.filter_field()
5252
regions: Annotated['RegionFilter', strawberry.lazy('dcim.graphql.filters')] | None = (
5353
strawberry_django.filter_field()
5454
)

0 commit comments

Comments
 (0)