Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Limit order status to three choices
Anna Siwik4044c19b0e4d
diff --git a/saleor/order/__init__.py b/saleor/order/__init__.pyindex 40c7f0f358..b12d01d309 100644--- a/saleor/order/__init__.py+++ b/saleor/order/__init__.py@@ -5,12 +5,8 @@ class OrderStatus:NEW = 'new'CANCELLED = 'cancelled'SHIPPED = 'shipped'- PAYMENT_PENDING = 'payment-pending'- FULLY_PAID = 'fully-paid'CHOICES = [(NEW, pgettext_lazy('order status', 'Processing')),(CANCELLED, pgettext_lazy('order status', 'Cancelled')),- (SHIPPED, pgettext_lazy('order status', 'Shipped')),- (PAYMENT_PENDING, pgettext_lazy('order status', 'Payment pending')),- (FULLY_PAID, pgettext_lazy('order status', 'Fully paid'))]+ (SHIPPED, pgettext_lazy('order status', 'Shipped'))]diff --git a/saleor/order/migrations/0025_auto_20171214_1015.py b/saleor/order/migrations/0025_auto_20171214_1015.pynew file mode 100644index 0000000000..c9b3e247b6--- /dev/null+++ b/saleor/order/migrations/0025_auto_20171214_1015.py@@ -0,0 +1,25 @@+# -*- coding: utf-8 -*-+# Generated by Django 1.11.5 on 2017-12-14 16:15+from __future__ import unicode_literals++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('order', '0024_remove_order_status'),+ ]++ operations = [+ migrations.AlterField(+ model_name='deliverygroup',+ name='status',+ field=models.CharField(choices=[('new', 'Processing'), ('cancelled', 'Cancelled'), ('shipped', 'Shipped')], default='new', max_length=32, verbose_name='shipment status'),+ ),+ migrations.AlterField(+ model_name='orderhistoryentry',+ name='status',+ field=models.CharField(choices=[('new', 'Processing'), ('cancelled', 'Cancelled'), ('shipped', 'Shipped')], max_length=32, verbose_name='order status'),+ ),+ ]