Parcourir la source

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

Martin Hauser il y a 1 jour
Parent
commit
77a991711e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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()