Skip to content

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

Fix Django 1.11 compatibility

Anna Siwik324849ac5538
diff --git a/saleor/checkout/migrations/0007_merge_cart_with_checkout.py b/saleor/checkout/migrations/0007_merge_cart_with_checkout.py
index e882696f3f..9702e3a865 100644
--- a/saleor/checkout/migrations/0007_merge_cart_with_checkout.py
+++ b/saleor/checkout/migrations/0007_merge_cart_with_checkout.py
@@ -1,4 +1,4 @@
-# Generated by Django 2.0.3 on 2018-05-29 06:12
+# Generated by Django 2.0.3 on 2018-05-29 08:18
from django.db import migrations, models
import django.db.models.deletion
@@ -8,8 +8,8 @@ import django_prices.models
class Migration(migrations.Migration):
dependencies = [
- ('shipping', '0008_auto_20180108_0814'),
('account', '0019_auto_20180528_1205'),
+ ('shipping', '0008_auto_20180108_0814'),
('checkout', '0006_auto_20180221_0825'),
]
@@ -78,12 +78,4 @@ class Migration(migrations.Migration):
name='email',
field=models.EmailField(blank=True, default='', max_length=254),
),
- migrations.AlterModelTable(
- name='cart',
- table=None,
- ),
- migrations.AlterModelTable(
- name='cartline',
- table=None,
- ),
]
diff --git a/saleor/checkout/migrations/0008_rename_tables.py b/saleor/checkout/migrations/0008_rename_tables.py
new file mode 100644
index 0000000000..70927ce759
--- /dev/null
+++ b/saleor/checkout/migrations/0008_rename_tables.py
@@ -0,0 +1,21 @@
+# Generated by Django 2.0.3 on 2018-05-29 08:20
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('checkout', '0007_merge_cart_with_checkout'),
+ ]
+
+ operations = [
+ migrations.AlterModelTable(
+ name='cart',
+ table=None,
+ ),
+ migrations.AlterModelTable(
+ name='cartline',
+ table=None,
+ ),
+ ]
diff --git a/saleor/urls.py b/saleor/urls.py
index e597af2366..670d8c1059 100644
--- a/saleor/urls.py
+++ b/saleor/urls.py
@@ -8,8 +8,8 @@ from django.views.i18n import JavaScriptCatalog, set_language
from graphene_django.views import GraphQLView
from .account.urls import urlpatterns as account_urls
-from .checkout.urls import cart_urlpatterns as cart_urls
-from .checkout.urls import checkout_urlpatterns as checkout_urls
+from .checkout.urls import (
+ cart_urlpatterns as cart_urls, checkout_urlpatterns as checkout_urls)
from .core.sitemaps import sitemaps
from .core.urls import urlpatterns as core_urls
from .dashboard.urls import urlpatterns as dashboard_urls