Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve descriptions

Adam Janik46e4baa1c8dd
diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.py
index 9eab176997..556ca13407 100644
--- a/saleor/graphql/product/types.py
+++ b/saleor/graphql/product/types.py
@@ -34,6 +34,9 @@ def resolve_attribute_list(attributes):
class ProductAttributeValue(CountableDjangoObjectType):
+ name = graphene.String(description='Attribute value\'s name.')
+ slug = graphene.String(description='Slugified name.')
+
class Meta:
description = 'Represents a value of an attribute.'
exclude_fields = ['attribute']
@@ -47,8 +50,7 @@ class ProductAttribute(CountableDjangoObjectType):
class Meta:
description = """Custom attribute of a product. Attributes can be
- dynamically assigned to products and variants at the product type
- level."""
+ assigned to products and variants at the product type level."""
exclude_fields = ['product_types', 'product_variant_types']
interfaces = [relay.Node]
filter_fields = ['id', 'slug']
diff --git a/tests/api/test_graphql.py b/tests/api/test_graphql.py
index d460c381f3..a1f7d1ddac 100644
--- a/tests/api/test_graphql.py
+++ b/tests/api/test_graphql.py
@@ -3,7 +3,6 @@ from unittest.mock import patch
import graphene
from django.contrib.auth.models import AnonymousUser
-from django.forms.models import model_to_dict
from django.http import HttpResponse
from django.shortcuts import reverse
from django.test import RequestFactory