Procházet zdrojové kódy

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

Martin Hauser před 1 dnem
rodič
revize
77a991711e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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()