Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge branch 'master' into feature/install_app_support
Maciej Korycinski373a20c7e0c3
diff --cc saleor/graphql/core/types/common.pyindex b9a489b1c8,9724c55fc4..34648345d7--- a/saleor/graphql/core/types/common.py+++ b/saleor/graphql/core/types/common.py@@@ -289,4 -288,11 +288,12 @@@ class Job(graphene.Interface)updated_at = graphene.DateTime(description="Date time of job last update in ISO 8601 format.", required=True)+ message = graphene.String(description="Job message.")++ @classmethod+ def resolve_type(cls, instance, _info):+ """Map a data object to a Graphene type."""+ MODEL_TO_TYPE_MAP = {+ # <DjangoModel>: <GrapheneType>+ }+ return MODEL_TO_TYPE_MAP.get(type(instance))diff --cc tests/api/conftest.pyindex 898973a2d5,41de78a898..4154938d17--- a/tests/api/conftest.py+++ b/tests/api/conftest.py@@@ -9,6 -10,8 +10,7 @@@ from django.test.client import MULTIPARfrom graphql_jwt.shortcuts import get_tokenfrom saleor.account.models import User-from saleor.app.models import App+ from saleor.graphql.views import handled_errors_logger, unhandled_errors_loggerfrom ..utils import flush_post_commit_hooksfrom .utils import assert_no_permission