Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge branch 'master' into update-default-decimal-places
Marcin Gębala6b5bf478ea0d
diff --cc CHANGELOG.mdindex cc85c14dba,7f54fc6f5f..6d2f9f320c--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -48,7 -48,7 +48,8 @@@ All notable, unreleased changes to thi- Do not allow negative product price - #6091 by @IKarbowiak- Handle None as attribute value - #6092 by @IKarbowiak- Fix for calling order_created before the order was saved - #6095 by @korycins+- Update default decimal places - #6098 by @IKarbowiak+ - Avoid assigning the same pictures twice to a variant - #6112 by @IKarbowiak## 2.10.2diff --cc saleor/graphql/product/tests/test_product.pyindex d1da94929c,d9de8d2076..76848ba84f--- a/saleor/graphql/product/tests/test_product.py+++ b/saleor/graphql/product/tests/test_product.py@@@ -33,9 -33,9 +33,10 @@@ from ....product.utils.attributes imporfrom ....warehouse.models import Allocation, Stock, Warehousefrom ...core.enums import ReportingPeriodfrom ...tests.utils import (+ assert_negative_positive_decimal_value,assert_no_permission,get_graphql_content,+ get_graphql_content_from_response,get_multipart_request_body,)from ..bulk_mutations.products import ProductVariantStocksUpdatediff --cc saleor/graphql/tests/utils.pyindex a6122dfc82,d4882978d7..473df9fdcf--- a/saleor/graphql/tests/utils.py+++ b/saleor/graphql/tests/utils.py@@@ -26,14 -26,6 +26,14 @@@ def assert_no_permission(response)), content["errors"]+def assert_negative_positive_decimal_value(response):- content = _get_graphql_content_from_response(response)++ content = get_graphql_content_from_response(response)+ assert "errors" in content, content+ assert "Value cannot be lower than 0." in content["errors"][0]["message"], content[+ "errors"+ ]++def get_multipart_request_body(query, variables, file, file_name):"""Create request body for multipart GraphQL requests.diff --cc saleor/product/migrations/0124_auto_20200909_0904.pyindex 605c7c1b0a,0000000000..3b0fe7ecc6mode 100644,000000..100644--- a/saleor/product/migrations/0124_auto_20200909_0904.py+++ b/saleor/product/migrations/0124_auto_20200909_0904.py@@@ -1,32 -1,0 +1,32 @@@- # Generated by Django 3.1 on 2020-09-04 05:29++# Generated by Django 3.1 on 2020-09-09 09:04++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [- ("product", "0122_auto_20200828_1135"),++ ("product", "0123_auto_20200904_1251"),+ ]++ operations = [+ migrations.AlterField(+ model_name="product",+ name="minimal_variant_price_amount",+ field=models.DecimalField(+ blank=True, decimal_places=3, max_digits=12, null=True+ ),+ ),+ migrations.AlterField(+ model_name="productvariant",+ name="cost_price_amount",+ field=models.DecimalField(+ blank=True, decimal_places=3, max_digits=12, null=True+ ),+ ),+ migrations.AlterField(+ model_name="productvariant",+ name="price_amount",+ field=models.DecimalField(decimal_places=3, max_digits=12),+ ),+ ]