Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove all dedents
Jakub Draganek7153d2864974
diff --git a/saleor/graphql/account/mutations.py b/saleor/graphql/account/mutations.pyindex ed972057d5..c5c66509bd 100644--- a/saleor/graphql/account/mutations.py+++ b/saleor/graphql/account/mutations.py@@ -1,4 +1,3 @@-from textwrap import dedentimport graphenefrom django.conf import settings@@ -617,7 +616,7 @@ class UserAvatarUpdate(BaseMutation):)class Meta:- description = dedent(+ description = ('''Create a user avatar. Only for staff members. This mutation mustbe sent as a `multipart` request. More detailed specs of thediff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.pyindex 829d4b1cf9..317cbedbd1 100644--- a/saleor/graphql/core/mutations.py+++ b/saleor/graphql/core/mutations.py@@ -1,5 +1,4 @@from itertools import chain-from textwrap import dedentfrom typing import Tupleimport graphene@@ -80,7 +79,6 @@ class BaseMutation(graphene.Mutation):if not description:raise ImproperlyConfigured('No description provided in Meta')- description = dedent(description)if isinstance(permissions, str):permissions = (permissions, )@@ -255,14 +253,14 @@ class ModelMutation(BaseMutation):def is_list_of_ids(field):return (- isinstance(field.type, graphene.List)- and field.type.of_type == graphene.ID)+ isinstance(field.type, graphene.List)+ and field.type.of_type == graphene.ID)def is_id_field(field):return (- field.type == graphene.ID- or isinstance(field.type, graphene.NonNull)- and field.type.of_type == graphene.ID)+ field.type == graphene.ID+ or isinstance(field.type, graphene.NonNull)+ and field.type.of_type == graphene.ID)def is_upload_field(field):if hasattr(field.type, 'of_type'):diff --git a/saleor/graphql/core/types/common.py b/saleor/graphql/core/types/common.pyindex 4e9b625ad2..90f1ebb650 100644--- a/saleor/graphql/core/types/common.py+++ b/saleor/graphql/core/types/common.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom ....product.templatetags.product_images import get_thumbnail@@ -16,7 +14,7 @@ class CountryDisplay(graphene.ObjectType):class Error(graphene.ObjectType):field = graphene.String(- description=dedent("""Name of a field that caused the error. A value of+ description=("""Name of a field that caused the error. A value of`null` indicates that the error isn't associated with a particularfield."""), required=False)message = graphene.String(description='The error message.')diff --git a/saleor/graphql/core/types/money.py b/saleor/graphql/core/types/money.pyindex 442803445c..b7b9859a50 100644--- a/saleor/graphql/core/types/money.py+++ b/saleor/graphql/core/types/money.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom django_prices.templatetags import prices_i18n@@ -39,7 +37,7 @@ class TaxedMoney(graphene.ObjectType):tax = graphene.Field(Money, description='Amount of taxes.', required=True)class Meta:- description = dedent("""Represents a monetary value with taxes. In+ description = ("""Represents a monetary value with taxes. Incase when taxes were not applied, net and gross values will be equal.""")@@ -60,8 +58,7 @@ class VAT(graphene.ObjectType):description='Standard VAT rate in percent.')reduced_rates = graphene.List(lambda: ReducedRate,- description=dedent('''- Country\'s VAT rate exceptions for specific types of goods.'''),+ description='Country\'s VAT rate exceptions for specific types of goods.',required=True)class Meta:@@ -83,5 +80,4 @@ class ReducedRate(graphene.ObjectType):rate_type = TaxRateType(description='A type of goods.', required=True)class Meta:- description = dedent('''- Represents a reduced VAT rate for a particular type of goods.''')+ description = 'Represents a reduced VAT rate for a particular type of goods.'diff --git a/saleor/graphql/core/types/upload.py b/saleor/graphql/core/types/upload.pyindex 95aebd3140..353f4f7fdd 100644--- a/saleor/graphql/core/types/upload.py+++ b/saleor/graphql/core/types/upload.py@@ -1,12 +1,10 @@-from textwrap import dedent-import grapheneclass Upload(graphene.types.Scalar):class Meta:- description = dedent('''Variables of this type must be set to null in+ description = ('''Variables of this type must be set to null inmutations. They will be replaced with a filename from a followingmultipart part containing a binary file. See:https://github.com/jaydenseric/graphql-multipart-request-spec''')diff --git a/saleor/graphql/discount/types.py b/saleor/graphql/discount/types.pyindex 07c7ad83ad..b42eb22b9b 100644--- a/saleor/graphql/discount/types.py+++ b/saleor/graphql/discount/types.py@@ -1,5 +1,3 @@-from textwrap import dedent-import grapheneimport graphene_django_optimizer as gql_optimizerfrom graphene import relay@@ -41,7 +39,7 @@ class Sale(CountableDjangoObjectType):resolver=resolve_translation)class Meta:- description = dedent("""+ description = ("""Sales allow creating discounts for categories, collections orproducts and are visible to all the customers.""")interfaces = [relay.Node]@@ -88,7 +86,7 @@ class Voucher(CountableDjangoObjectType):resolver=resolve_translation)class Meta:- description = dedent("""+ description = ("""Vouchers allow giving discounts to particular customers on categories,collections or specific products. They can be used during checkout byproviding valid voucher codes.""")diff --git a/saleor/graphql/menu/mutations.py b/saleor/graphql/menu/mutations.pyindex 9e73295608..bd6fbf253d 100644--- a/saleor/graphql/menu/mutations.py+++ b/saleor/graphql/menu/mutations.py@@ -1,5 +1,4 @@from collections import namedtuple-from textwrap import dedentfrom typing import Listimport graphene@@ -30,7 +29,7 @@ class MenuItemCreateInput(MenuItemInput):description='Menu to which item belongs to.', name='menu',required=True)parent = graphene.ID(- description=dedent('''+ description=('''ID of the parent menu. If empty, menu will be top levelmenu.'''),name='parent')@@ -66,7 +65,8 @@ class MenuCreate(ModelMutation):page = item.get('page')url = item.get('url')if len([i for i in [category, collection, page, url] if i]) > 1:- raise ValidationError({'items': 'More than one item provided.'})+ raise ValidationError(+ {'items': 'More than one item provided.'})if category:category = cls.get_node_or_error(@@ -124,7 +124,7 @@ class MenuItemCreate(ModelMutation):class Arguments:input = MenuItemCreateInput(required=True,- description=dedent("""Fields required to update a menu item.+ description=("""Fields required to update a menu item.Only one of 'url', 'category', 'page', 'collection' is allowedper item"""))@@ -151,7 +151,7 @@ class MenuItemUpdate(MenuItemCreate):required=True, description='ID of a menu item to update.')input = MenuItemInput(required=True,- description=dedent("""Fields required to update a menu item.+ description=("""Fields required to update a menu item.Only one of 'url', 'category', 'page', 'collection' is allowedper item"""))diff --git a/saleor/graphql/menu/types.py b/saleor/graphql/menu/types.pyindex 02832a73e5..13d555bf74 100644--- a/saleor/graphql/menu/types.py+++ b/saleor/graphql/menu/types.py@@ -1,5 +1,3 @@-from textwrap import dedent-import grapheneimport graphene_django_optimizer as gql_optimizerfrom django.db.models import Prefetch@@ -25,7 +23,7 @@ class Menu(CountableDjangoObjectType):prefetch_related=prefetch_menus)class Meta:- description = dedent(+ description = ("""Represents a single menu - an object that is usedto help navigate through the store.""")interfaces = [relay.Node]@@ -54,7 +52,7 @@ class MenuItem(CountableDjangoObjectType):resolver=resolve_translation)class Meta:- description = dedent("""Represents a single item of the related menu.+ description = ("""Represents a single item of the related menu.Can store categories, collection or pages.""")interfaces = [relay.Node]only_fields = [diff --git a/saleor/graphql/order/mutations/draft_orders.py b/saleor/graphql/order/mutations/draft_orders.pyindex 730ed82b8d..350e93cacf 100644--- a/saleor/graphql/order/mutations/draft_orders.py+++ b/saleor/graphql/order/mutations/draft_orders.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom django.core.exceptions import ValidationErrorfrom graphene.types import InputObjectType@@ -49,7 +47,7 @@ class DraftOrderInput(InputObjectType):class DraftOrderCreateInput(DraftOrderInput):lines = graphene.List(OrderLineCreateInput,- description=dedent("""Variant line input consisting of variant ID+ description=("""Variant line input consisting of variant IDand quantity of products."""))@@ -218,7 +216,7 @@ class DraftOrderLinesCreate(BaseMutation):description='ID of the draft order to add the lines to.')input = graphene.List(OrderLineCreateInput, required=True,- description=dedent("""Fields required to add order lines."""))+ description='Fields required to add order lines.')class Meta:description = 'Create order lines for a draft order.'diff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.pyindex 5253779044..7a5a853336 100644--- a/saleor/graphql/order/mutations/fulfillments.py+++ b/saleor/graphql/order/mutations/fulfillments.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom django.core.exceptions import ValidationErrorfrom django.utils.translation import npgettext_lazy, pgettext_lazy@@ -187,7 +185,7 @@ class FulfillmentCancel(BaseMutation):description='Fields required to cancel an fulfillment.')class Meta:- description = dedent("""Cancels existing fulfillment+ description = ("""Cancels existing fulfillmentand optionally restocks items.""")permissions = ('order.manage_orders', )diff --git a/saleor/graphql/order/schema.py b/saleor/graphql/order/schema.pyindex dff9bea8ff..1142e5cbfe 100644--- a/saleor/graphql/order/schema.py+++ b/saleor/graphql/order/schema.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom graphql_jwt.decorators import login_required, permission_required@@ -40,7 +38,7 @@ class OrderDraftFilterInput(FilterInputObjectType):class OrderQueries(graphene.ObjectType):homepage_events = PrefetchingConnectionField(- OrderEvent, description=dedent('''List of activity events to display on+ OrderEvent, description=('''List of activity events to display onhomepage (at the moment it only contains order-events).'''))order = graphene.Field(Order, description='Lookup an order by ID.',diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.pyindex 5c4faef2ba..fd7ceaa6e6 100644--- a/saleor/graphql/order/types.py+++ b/saleor/graphql/order/types.py@@ -1,5 +1,3 @@-from textwrap import dedent-import grapheneimport graphene_django_optimizer as gql_optimizerfrom django.core.exceptions import ValidationError@@ -125,7 +123,7 @@ class OrderLine(CountableDjangoObjectType):variant = graphene.Field(ProductVariant,required=False,- description=dedent('''+ description=('''A purchased product variant. Note: this field may be null if thevariant has been removed from stock at all.'''))diff --git a/saleor/graphql/page/types.py b/saleor/graphql/page/types.pyindex 4c2e362333..721459a604 100644--- a/saleor/graphql/page/types.py+++ b/saleor/graphql/page/types.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom graphene import relay@@ -28,7 +26,7 @@ class Page(CountableDjangoObjectType):resolver=resolve_translation)class Meta:- description = dedent(+ description = ("""A static page that can be manually added by a shopoperator through the dashboard.""")only_fields = [diff --git a/saleor/graphql/payment/mutations.py b/saleor/graphql/payment/mutations.pyindex d7cc820b9c..07ec3fe63e 100644--- a/saleor/graphql/payment/mutations.py+++ b/saleor/graphql/payment/mutations.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom django.conf import settingsfrom django.core.exceptions import ValidationError@@ -35,7 +33,7 @@ class PaymentInput(graphene.InputObjectType):'all taxes and discounts. If no amount is provided, ''the checkout total will be used.'))billing_address = AddressInput(- description=dedent(+ description=('''Billing address. If empty, the billing address associated withthe checkout instance will be used.'''))diff --git a/saleor/graphql/product/mutations/digital_contents.py b/saleor/graphql/product/mutations/digital_contents.pyindex 2849ffbbda..057baa96d2 100644--- a/saleor/graphql/product/mutations/digital_contents.py+++ b/saleor/graphql/product/mutations/digital_contents.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom django.core.exceptions import ValidationErrorfrom graphql_jwt.decorators import permission_required@@ -49,7 +47,7 @@ class DigitalContentCreate(BaseMutation):description='Fields required to create a digital content.')class Meta:- description = dedent('''Create new digital content. This mutation must+ description = ('''Create new digital content. This mutation mustbe sent as a `multipart` request. More detailed specs of the uploadformat can be found here:https://github.com/jaydenseric/graphql-multipart-request-spec''')@@ -113,8 +111,7 @@ class DigitalContentDelete(BaseMutation):required=True)class Meta:- description = dedent(- 'Remove digital content assigned to given variant')+ description = 'Remove digital content assigned to given variant'@classmethod@permission_required('product.manage_products')@@ -142,7 +139,7 @@ class DigitalContentUpdate(BaseMutation):description='Fields required to update a digital content.')class Meta:- description = dedent('Update digital content')+ description = 'Update digital content'@classmethod@permission_required('product.manage_products')diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex f20521f9fa..a6176bbb1b 100644--- a/saleor/graphql/product/mutations/products.py+++ b/saleor/graphql/product/mutations/products.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom django.core.exceptions import ValidationErrorfrom django.db import transaction@@ -39,7 +37,7 @@ class CategoryCreate(ModelMutation):input = CategoryInput(required=True, description='Fields required to create a category.')parent_id = graphene.ID(- description=dedent('''+ description=('''ID of the parent category. If empty, category will be top levelcategory.'''), name='parent')@@ -276,14 +274,14 @@ class ProductInput(graphene.InputObjectType):weight = WeightScalar(description='Weight of the Product.', required=False)sku = graphene.String(- description=dedent("""Stock keeping unit of a product. Note: this+ description=("""Stock keeping unit of a product. Note: thisfield is only used if a product doesn't use variants."""))quantity = graphene.Int(- description=dedent("""The total quantity of a product available for+ description=("""The total quantity of a product available forsale. Note: this field is only used if a product doesn'tuse variants."""))track_inventory = graphene.Boolean(- description=dedent("""Determines if the inventory of this product+ description=("""Determines if the inventory of this productshould be tracked. If false, the quantity won't change when customersbuy this item. Note: this field is only used if a product doesn'tuse variants."""))@@ -383,9 +381,9 @@ class ProductUpdate(ProductCreate):@classmethoddef clean_sku(cls, product_type, cleaned_input):input_sku = cleaned_input.get('sku')- if (not product_type.has_variants and- input_sku and- models.ProductVariant.objects.filter(sku=input_sku).exists()):+ if (not product_type.has_variants+ and input_sku+ and models.ProductVariant.objects.filter(sku=input_sku).exists()):raise ValidationError({'sku': 'Product with this SKU already exists.'})@@ -431,7 +429,7 @@ class ProductVariantInput(graphene.InputObjectType):quantity = graphene.Int(description='The total quantity of this variant available for sale.')track_inventory = graphene.Boolean(- description=dedent(+ description=("""Determines if the inventory of this variant shouldbe tracked. If false, the quantity won't change when customersbuy this item."""))@@ -534,7 +532,7 @@ class ProductVariantDelete(ModelDeleteMutation):class ProductTypeInput(graphene.InputObjectType):name = graphene.String(description='Name of the product type.')has_variants = graphene.Boolean(- description=dedent("""Determines if product of this type has multiple+ description=("""Determines if product of this type has multiplevariants. This option mainly simplifies product managementin the dashboard. There is always at least one variant created underthe hood."""))@@ -544,14 +542,14 @@ class ProductTypeInput(graphene.InputObjectType):name='productAttributes')variant_attributes = graphene.List(graphene.ID,- description=dedent("""List of attributes used to distinguish between+ description=("""List of attributes used to distinguish betweendifferent variants of a product."""),name='variantAttributes')is_shipping_required = graphene.Boolean(- description=dedent("""Determines if shipping is required for products+ description=("""Determines if shipping is required for productsof this variant."""))is_digital = graphene.Boolean(- description=dedent("Determines if products are digital."),+ description=("Determines if products are digital."),required=False)weight = WeightScalar(description='Weight of the ProductType items.')tax_rate = TaxRateType(description='A type of goods.')@@ -630,7 +628,7 @@ class ProductImageCreate(BaseMutation):description='Fields required to create a product image.')class Meta:- description = dedent('''Create a product image. This mutation must be+ description = ('''Create a product image. This mutation must besent as a `multipart` request. More detailed specs of the upload formatcan be found here:https://github.com/jaydenseric/graphql-multipart-request-spec''')diff --git a/saleor/graphql/product/schema.py b/saleor/graphql/product/schema.pyindex e10af89dc5..917bc1287b 100644--- a/saleor/graphql/product/schema.py+++ b/saleor/graphql/product/schema.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom graphql_jwt.decorators import permission_required@@ -70,11 +68,11 @@ class ProductQueries(graphene.ObjectType):description='List of the shop\'s attributes.',query=graphene.String(description=DESCRIPTIONS['attributes']),in_category=graphene.Argument(- graphene.ID, description=dedent(+ graphene.ID, description=('''Return attributes for products belonging to the givencategory.''')),in_collection=graphene.Argument(- graphene.ID, description=dedent(+ graphene.ID, description=('''Return attributes for products belonging to the givencollection.''')), )categories = PrefetchingConnectionField(@@ -105,10 +103,10 @@ class ProductQueries(graphene.ObjectType):collections=graphene.List(graphene.ID, description='Filter products by collections.'),price_lte=graphene.Float(- description=dedent(+ description=('''Filter by price less than or equal to the given value.''')),price_gte=graphene.Float(- description=dedent(+ description=('''Filter by price greater than or equal to the given value.''')),sort_by=graphene.Argument(diff --git a/saleor/graphql/product/types/attributes.py b/saleor/graphql/product/types/attributes.pyindex f42447a0a9..92edf30f83 100644--- a/saleor/graphql/product/types/attributes.py+++ b/saleor/graphql/product/types/attributes.py@@ -1,5 +1,4 @@import re-from textwrap import dedentimport grapheneimport graphene_django_optimizer as gql_optimizer@@ -73,7 +72,7 @@ class Attribute(CountableDjangoObjectType):resolver=resolve_translation)class Meta:- description = dedent("""+ description = ("""Custom attribute of a product. Attributes can beassigned to products and variants at the product type level.""")only_fields = ['id', 'product_type', 'product_variant_type']diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex e7af63608b..e237fc6b3e 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -1,5 +1,3 @@-from textwrap import dedent-import grapheneimport graphene_django_optimizer as gql_optimizerfrom django.db.models import Prefetch@@ -138,7 +136,7 @@ class ProductVariant(CountableDjangoObjectType):required=True, description='Quantity of a product available for sale.')price_override = graphene.Field(Money,- description=dedent(+ description=("""Override the base price of a product if necessary.A value of `null` indicates that the default productprice is used."""))@@ -147,13 +145,13 @@ class ProductVariant(CountableDjangoObjectType):deprecation_reason=('Has been replaced by \'pricing.price_undiscounted\''))availability = graphene.Field(- VariantPricingInfo, description=dedent(+ VariantPricingInfo, description=("""Informs about variant's availability in thestorefront, current price and discounted price."""),deprecation_reason='Has been renamed to \'pricing\'.')pricing = graphene.Field(VariantPricingInfo,- description=dedent(+ description=("""Lists the storefront variant's pricing,the current price and discounts, only meant for displaying"""))is_available = graphene.Boolean(@@ -167,7 +165,7 @@ class ProductVariant(CountableDjangoObjectType):quantity_ordered = graphene.Int(description='Total quantity ordered.')revenue = graphene.Field(TaxedMoney, period=graphene.Argument(ReportingPeriod),- description=dedent('''Total revenue generated by a variant in given+ description=('''Total revenue generated by a variant in givenperiod of time. Note: this field should be queried using`reportProductSales` query as it uses optimizations suitablefor such calculations.'''))@@ -191,7 +189,7 @@ class ProductVariant(CountableDjangoObjectType):model_field='digital_content')class Meta:- description = dedent("""Represents a version of a product such as+ description = ("""Represents a version of a product such asdifferent size or color.""")only_fields = ['id', 'name', 'product', 'quantity', 'quantity_allocated', 'sku',@@ -276,19 +274,19 @@ class Product(CountableDjangoObjectType):thumbnail_url = graphene.String(description='The URL of a main thumbnail for a product.',size=graphene.Argument(graphene.Int, description='Size of thumbnail'),- deprecation_reason=dedent("""thumbnailUrl is deprecated, use+ deprecation_reason=("""thumbnailUrl is deprecated, usethumbnail instead"""))thumbnail = graphene.Field(Image, description='The main thumbnail for a product.',size=graphene.Argument(graphene.Int, description='Size of thumbnail'))availability = graphene.Field(ProductPricingInfo,- description=dedent(+ description=("""Informs about product's availability in thestorefront, current price and discounts."""),deprecation_reason='Has been renamed to \'pricing\'.')pricing = graphene.Field(- ProductPricingInfo, description=dedent(+ ProductPricingInfo, description=("""Lists the storefront product's pricing,the current price and discounts, only meant for displaying."""))is_available = graphene.Boolean(@@ -340,7 +338,7 @@ class Product(CountableDjangoObjectType):resolver=resolve_translation)class Meta:- description = dedent("""Represents an individual item for sale in the+ description = ("""Represents an individual item for sale in thestorefront.""")interfaces = [relay.Node]model = models.Product@@ -451,7 +449,7 @@ class ProductType(CountableDjangoObjectType):Attribute, description='Product attributes of that product type.')class Meta:- description = dedent("""Represents a type of product. It defines what+ description = ("""Represents a type of product. It defines whatattributes are available to products of this type.""")interfaces = [relay.Node]model = models.ProductType@@ -557,7 +555,7 @@ class Category(CountableDjangoObjectType):resolver=resolve_translation)class Meta:- description = dedent("""Represents a single category of products.+ description = ("""Represents a single category of products.Categories allow to organize products in a tree-hierarchies which canbe used for navigation in the storefront.""")only_fields = [diff --git a/saleor/graphql/shipping/mutations.py b/saleor/graphql/shipping/mutations.pyindex d573040c86..a5e8181bb2 100644--- a/saleor/graphql/shipping/mutations.py+++ b/saleor/graphql/shipping/mutations.py@@ -1,5 +1,3 @@-from textwrap import dedent-import graphenefrom django.core.exceptions import ValidationError@@ -36,7 +34,7 @@ class ShippingZoneInput(graphene.InputObjectType):graphene.String,description='List of countries in this shipping zone.')default = graphene.Boolean(- description=dedent(+ description=("""Is default shipping zone, that will be usedfor countries not covered by other zones."""))diff --git a/saleor/graphql/shipping/types.py b/saleor/graphql/shipping/types.pyindex 3619684c73..c7d2532d85 100644--- a/saleor/graphql/shipping/types.py+++ b/saleor/graphql/shipping/types.py@@ -1,5 +1,3 @@-from textwrap import dedent-import grapheneimport graphene_django_optimizer as gql_optimizerfrom graphene import relay@@ -27,7 +25,7 @@ class ShippingMethod(CountableDjangoObjectType):resolver=resolve_translation)class Meta:- description = dedent("""+ description = ("""Shipping method are the methods you'll use to getcustomer's orders to them.They are directly exposed to the customers.""")@@ -53,7 +51,7 @@ class ShippingZone(CountableDjangoObjectType):model_field='shipping_methods')class Meta:- description = dedent("""+ description = ("""Represents a shipping zone in the shop. Zones are the conceptused only for grouping shipping methods in the dashboard,and are never exposed to the customers directly.""")diff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.pyindex 089643bcde..4576bd766c 100644--- a/saleor/graphql/shop/types.py+++ b/saleor/graphql/shop/types.py@@ -1,5 +1,3 @@-from textwrap import dedent-import grapheneimport graphene_django_optimizer as gql_optimizerfrom django.conf import settings@@ -68,7 +66,7 @@ class Shop(graphene.ObjectType):description='Customer\'s geolocalization data.')authorization_keys = graphene.List(AuthorizationKey,- description=dedent(+ description=('''List of configured authorization keys. Authorizationkeys are used to enable third party OAuth authorization(currently Facebook or Google).'''),@@ -128,7 +126,7 @@ class Shop(graphene.ObjectType):'Default number of days which digital content url will be valid'))class Meta:- description = dedent('''+ description = ('''Represents a shop resource containing general shop\'s dataand configuration.''')