Ver Fonte

fix(graphql): Make ConfigContextProfile filter fields optional (#22313)

Martin Hauser há 1 dia atrás
pai
commit
77a991711e
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      netbox/extras/graphql/filters.py

+ 2 - 2
netbox/extras/graphql/filters.py

@@ -111,8 +111,8 @@ class ConfigContextFilter(SyncedDataFilterMixin, ChangeLoggedModelFilter):
 
 @strawberry_django.filter_type(models.ConfigContextProfile, lookups=True)
 class ConfigContextProfileFilter(SyncedDataFilterMixin, PrimaryModelFilter):
-    name: StrFilterLookup[str] = strawberry_django.filter_field()
-    description: StrFilterLookup[str] = strawberry_django.filter_field()
+    name: StrFilterLookup[str] | None = strawberry_django.filter_field()
+    description: StrFilterLookup[str] | None = strawberry_django.filter_field()
     tags: Annotated['TagFilter', strawberry.lazy('extras.graphql.filters')] | None = strawberry_django.filter_field()