Skip to content

Commit ae21a6a

Browse files
committed
Change explicitly specified id fields to FilterLookups
1 parent 1dcfc05 commit ae21a6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netbox/core/graphql/filters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
@strawberry_django.filter_type(models.DataFile, lookups=True)
2828
class DataFileFilter(BaseFilterMixin):
29-
id: ID | None = strawberry_django.filter_field()
29+
id: FilterLookup[ID] | None = strawberry_django.filter_field()
3030
created: DatetimeFilterLookup[datetime] | None = strawberry_django.filter_field()
3131
last_updated: DatetimeFilterLookup[datetime] | None = strawberry_django.filter_field()
3232
source: Annotated['DataSourceFilter', strawberry.lazy('core.graphql.filters')] | None = (
@@ -61,7 +61,7 @@ class DataSourceFilter(PrimaryModelFilterMixin):
6161

6262
@strawberry_django.filter_type(models.ObjectChange, lookups=True)
6363
class ObjectChangeFilter(BaseFilterMixin):
64-
id: ID | None = strawberry_django.filter_field()
64+
id: FilterLookup[ID] | None = strawberry_django.filter_field()
6565
time: DatetimeFilterLookup[datetime] | None = strawberry_django.filter_field()
6666
user: Annotated['UserFilter', strawberry.lazy('users.graphql.filters')] | None = strawberry_django.filter_field()
6767
user_name: FilterLookup[str] | None = strawberry_django.filter_field()
@@ -89,6 +89,6 @@ class ObjectChangeFilter(BaseFilterMixin):
8989

9090
@strawberry_django.filter_type(DjangoContentType, lookups=True)
9191
class ContentTypeFilter(BaseFilterMixin):
92-
id: ID | None = strawberry_django.filter_field()
92+
id: FilterLookup[ID] | None = strawberry_django.filter_field()
9393
app_label: FilterLookup[str] | None = strawberry_django.filter_field()
9494
model: FilterLookup[str] | None = strawberry_django.filter_field()

0 commit comments

Comments
 (0)