Skip to content

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

Change function name in migration

fowczrek90f155a585b9
diff --git a/saleor/warehouse/migrations/0009_remove_invalid_allocation.py b/saleor/warehouse/migrations/0009_remove_invalid_allocation.py
index e8db6a6c8d..c54369d974 100644
--- a/saleor/warehouse/migrations/0009_remove_invalid_allocation.py
+++ b/saleor/warehouse/migrations/0009_remove_invalid_allocation.py
@@ -6,7 +6,7 @@ DRAFT = "draft"
CANCELED = "canceled"
-def create_allocations(apps, schema_editor):
+def remove_invalid_allocations(apps, schema_editor):
Allocation = apps.get_model("warehouse", "Allocation")
invalid_allocation = Allocation.objects.filter(
order_line__order__status__in=[DRAFT, CANCELED]
@@ -21,5 +21,5 @@ class Migration(migrations.Migration):
]
operations = [
- migrations.RunPython(create_allocations),
+ migrations.RunPython(remove_invalid_allocations),
]