Skip to content

Commit

Permalink
Merge pull request #152 from mitodl/5557-ecommerce-determine-how-to-h…
Browse files Browse the repository at this point in the history
…andle-order-state

5557 ecommerce determine how to handle order state
  • Loading branch information
cp-at-mit authored Sep 25, 2024
2 parents 22cd50f + 2738624 commit 281e58d
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 177 deletions.
4 changes: 2 additions & 2 deletions payments/migrations/0001_add_order_and_basket_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class Migration(migrations.Migration):
"indexes": [],
"constraints": [],
},
bases=(payments.models.FulfillableOrder, "payments.order"),
bases=("payments.order",),
),
migrations.CreateModel(
name="RefundedOrder",
Expand All @@ -289,7 +289,7 @@ class Migration(migrations.Migration):
"indexes": [],
"constraints": [],
},
bases=(payments.models.FulfillableOrder, "payments.order"),
bases=("payments.order",),
),
migrations.AddConstraint(
model_name="line",
Expand Down
28 changes: 28 additions & 0 deletions payments/migrations/0003_alter_order_state.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.15 on 2024-09-23 15:31

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("payments", "0002_remove_system_slug_from_basket"),
]

operations = [
migrations.AlterField(
model_name="order",
name="state",
field=models.CharField(
choices=[
("pending", "Pending"),
("fulfilled", "Fulfilled"),
("canceled", "Canceled"),
("refunded", "Refunded"),
("declined", "Declined"),
("errored", "Errored"),
("review", "Review"),
],
default="pending",
),
),
]
Loading

0 comments on commit 281e58d

Please sign in to comment.