Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update graphene-django and fix invalid field names
Patryk Zawadzki088d15d871a9
diff --git a/saleor/graphql/checkout/types.py b/saleor/graphql/checkout/types.pyindex 1ec4c6de00..f158c4c1dd 100644--- a/saleor/graphql/checkout/types.py+++ b/saleor/graphql/checkout/types.py@@ -117,7 +117,6 @@ class Checkout(CountableDjangoObjectType):"created","discount_name","gift_cards",- "is_shipping_required","last_change","note","quantity",diff --git a/saleor/graphql/core/fields.py b/saleor/graphql/core/fields.pyindex 4c276eb860..3c34e778f2 100644--- a/saleor/graphql/core/fields.py+++ b/saleor/graphql/core/fields.py@@ -95,10 +95,7 @@ class PrefetchingConnectionField(BaseDjangoConnectionField):)@classmethod- def resolve_connection(cls, connection, default_manager, args, iterable):- if iterable is None:- iterable = default_manager-+ def resolve_connection(cls, connection, args, iterable):connection = connection_from_queryset_slice(iterable,args,diff --git a/saleor/graphql/product/types/digital_contents.py b/saleor/graphql/product/types/digital_contents.pyindex 1c0dbb70f9..4d0e39b3e7 100644--- a/saleor/graphql/product/types/digital_contents.py+++ b/saleor/graphql/product/types/digital_contents.py@@ -15,7 +15,7 @@ class DigitalContentUrl(CountableDjangoObjectType):class Meta:model = models.DigitalContentUrl- only_fields = ["content", "created", "download_num", "token", "url"]+ only_fields = ["content", "created", "download_num", "token"]interfaces = (relay.Node,)@staticmethoddiff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex 5bbdfdeed4..1814ebeb01 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -634,7 +634,6 @@ class ProductType(CountableDjangoObjectType):"name","slug","weight",- "tax_type",]@staticmethoddiff --git a/saleor/graphql/webhook/types.py b/saleor/graphql/webhook/types.pyindex b469ab999d..e0a44cc60f 100644--- a/saleor/graphql/webhook/types.py+++ b/saleor/graphql/webhook/types.py@@ -16,7 +16,7 @@ class WebhookEvent(CountableDjangoObjectType):class Meta:model = models.WebhookEventdescription = "Webhook event."- only_fields = ["event_type", "name"]+ only_fields = ["event_type"]@staticmethoddef resolve_name(root: models.WebhookEvent, *_args, **_kwargs):