Skip to content

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

Fix removing django_fsm

Anna Siwik9fb3c97c57e3
diff --git a/saleor/order/migrations/0028_status_fsm.py b/saleor/order/migrations/0028_status_fsm.py
index a6f44dce8e..fb2ee68fd4 100644
--- a/saleor/order/migrations/0028_status_fsm.py
+++ b/saleor/order/migrations/0028_status_fsm.py
@@ -2,8 +2,7 @@
# Generated by Django 1.11.5 on 2018-01-03 13:08
from __future__ import unicode_literals
-from django.db import migrations
-import django_fsm
+from django.db import migrations, models
class Migration(migrations.Migration):
@@ -16,6 +15,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='deliverygroup',
name='status',
- field=django_fsm.FSMField(choices=[('new', 'Processing'), ('cancelled', 'Cancelled'), ('shipped', 'Shipped')], default='new', max_length=32, protected=True, verbose_name='shipment status'),
+ field=models.CharField(choices=[('new', 'Processing'), ('cancelled', 'Cancelled'), ('shipped', 'Shipped')], default='new', max_length=32, verbose_name='shipment status'),
),
]
diff --git a/saleor/order/migrations/0029_auto_20180111_0845.py b/saleor/order/migrations/0029_auto_20180111_0845.py
index 87ce09bdb0..b4a91d676e 100644
--- a/saleor/order/migrations/0029_auto_20180111_0845.py
+++ b/saleor/order/migrations/0029_auto_20180111_0845.py
@@ -5,7 +5,6 @@ from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
-import django_fsm
class Migration(migrations.Migration):
@@ -18,7 +17,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='deliverygroup',
name='status',
- field=django_fsm.FSMField(choices=[('new', 'Processing'), ('cancelled', 'Cancelled'), ('shipped', 'Shipped')], default='new', max_length=32, protected=True),
+ field=models.CharField(choices=[('new', 'Processing'), ('cancelled', 'Cancelled'), ('shipped', 'Shipped')], default='new', max_length=32),
),
migrations.AlterField(
model_name='ordernote',
diff --git a/saleor/settings.py b/saleor/settings.py
index 4d528b563e..cc786775ab 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -174,7 +174,6 @@ INSTALLED_APPS = [
'versatileimagefield',
'django_babel',
'bootstrap4',
- 'django_fsm',
'django_prices',
'django_prices_openexchangerates',
'graphene_django',