Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Reapply shared address instances migration (#18671)
Iga Karbowiakfbf4815829dd
diff --git a/saleor/checkout/migrations/0083_fix_shared_address_instances.py b/saleor/checkout/migrations/0083_fix_shared_address_instances.pyindex 0f62587cdd..939590e7fe 100644--- a/saleor/checkout/migrations/0083_fix_shared_address_instances.py+++ b/saleor/checkout/migrations/0083_fix_shared_address_instances.py@@ -1,18 +1,6 @@# Generated by Django 4.2.26 on 2025-12-22 10:10-from django.apps import apps as registryfrom django.db import migrations-from django.db.models.signals import post_migrate--from .tasks.saleor3_21 import fix_shared_address_instances_task---def fix_shared_address_instances(apps, schema_editor):- def on_migrations_complete(sender=None, **kwargs):- fix_shared_address_instances_task.delay()-- sender = registry.get_app_config("order")- post_migrate.connect(on_migrations_complete, weak=False, sender=sender)class Migration(migrations.Migration):@@ -20,6 +8,5 @@ class Migration(migrations.Migration):("checkout", "0082_merge_20251211_1339"),]- operations = [- migrations.RunPython(fix_shared_address_instances, migrations.RunPython.noop),- ]+ # empty migration for history consistency+ operations = []diff --git a/saleor/checkout/migrations/0088_reapply_fix_shared_address_instances.py b/saleor/checkout/migrations/0088_reapply_fix_shared_address_instances.pynew file mode 100644index 0000000000..4c8c8147d4--- /dev/null+++ b/saleor/checkout/migrations/0088_reapply_fix_shared_address_instances.py@@ -0,0 +1,25 @@+# Generated by Django 5.2.8 on 2026-01-09 09:55++from django.apps import apps as registry+from django.db import migrations+from django.db.models.signals import post_migrate++from .tasks.saleor3_21 import fix_shared_address_instances_task+++def fix_shared_address_instances(apps, schema_editor):+ def on_migrations_complete(sender=None, **kwargs):+ fix_shared_address_instances_task.delay()++ sender = registry.get_app_config("order")+ post_migrate.connect(on_migrations_complete, weak=False, sender=sender)+++class Migration(migrations.Migration):+ dependencies = [+ ("checkout", "0087_merge_20251223_1336"),+ ]++ operations = [+ migrations.RunPython(fix_shared_address_instances),+ ]