Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix conflicting migrations
Anna Siwik8bdd75213f80
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.pyindex 5d0e0d5650..4a885ed2f9 100644--- a/saleor/core/utils/random_data.py+++ b/saleor/core/utils/random_data.py@@ -209,7 +209,7 @@ def create_products_by_type(for dummy in range(how_many):product = create_product(product_type=product_type, category=category)- set_product_attributes(product, product_class)+ set_product_attributes(product, product_type)if create_images:type_placeholders = os.path.join(placeholder_dir, schema['images_dir'])diff --git a/saleor/product/migrations/0045_product_class_to_type.py b/saleor/product/migrations/0048_product_class_to_type.pysimilarity index 95%rename from saleor/product/migrations/0045_product_class_to_type.pyrename to saleor/product/migrations/0048_product_class_to_type.pyindex 2d9d71aa72..49342c4ce7 100644--- a/saleor/product/migrations/0045_product_class_to_type.py+++ b/saleor/product/migrations/0048_product_class_to_type.py@@ -8,7 +8,7 @@ from django.db import migrations, modelsclass Migration(migrations.Migration):dependencies = [- ('product', '0044_auto_20180108_0814'),+ ('product', '0047_auto_20180117_0359'),]operations = [diff --git a/tests/conftest.py b/tests/conftest.pyindex b85138dfeb..a58257063c 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -363,7 +363,7 @@ def voucher(db): # pylint: disable=W0613@pytest.fixture()-def order_with_lines(order, product_class, default_category):+def order_with_lines(order, product_type, default_category):group = DeliveryGroup.objects.create(order=order)product = Product.objects.create(name='Test product', price=Decimal('10.00'),@@ -409,7 +409,7 @@ def order_with_lines(order, product_class, default_category):@pytest.fixture()-def order_with_lines_and_stock(order, product_class, default_category):+def order_with_lines_and_stock(order, product_type, default_category):group = DeliveryGroup.objects.create(order=order)product = Product.objects.create(name='Test product', price=Decimal('10.00'),