Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove deprecated publishedDate from Collection
fowczarek63ac6b87a6da
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex 9a7d2e9288..20fdd30b07 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -730,9 +730,6 @@ class Collection(CountableDjangoObjectType, MetadataObjectType):background_image = graphene.Field(Image, size=graphene.Int(description="Size of the image"))- published_date = graphene.Date(- deprecation_reason=("publishedDate is deprecated, use publicationDate instead")- )translation = graphene.Field(CollectionTranslation,language_code=graphene.Argument(@@ -780,10 +777,6 @@ class Collection(CountableDjangoObjectType, MetadataObjectType):qs = root.products.collection_sorted(info.context.user)return gql_optimizer.query(qs, info)- @staticmethod- def resolve_published_date(root: models.Collection, *_args):- return root.publication_date-@classmethoddef get_node(cls, info, id):if info.context: