Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Extend the max size for checkout.external_shipping_method_id field (#17447)
Maciej Korycinski9c1b5a481109
diff --git a/saleor/checkout/migrations/0074_alter_checkout_external_shipping_method_id.py b/saleor/checkout/migrations/0074_alter_checkout_external_shipping_method_id.pynew file mode 100644index 0000000000..1632a16218--- /dev/null+++ b/saleor/checkout/migrations/0074_alter_checkout_external_shipping_method_id.py@@ -0,0 +1,19 @@+# Generated by Django 4.2.15 on 2025-03-03 09:51++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("checkout", "0073_checkout_external_shipping_method_id_and_more"),+ ]++ operations = [+ migrations.AlterField(+ model_name="checkout",+ name="external_shipping_method_id",+ field=models.CharField(+ blank=True, default=None, editable=False, max_length=512, null=True+ ),+ ),+ ]diff --git a/saleor/checkout/migrations/0077_merge_20250303_0958.py b/saleor/checkout/migrations/0077_merge_20250303_0958.pynew file mode 100644index 0000000000..9fc2c213c5--- /dev/null+++ b/saleor/checkout/migrations/0077_merge_20250303_0958.py@@ -0,0 +1,12 @@+# Generated by Django 4.2.15 on 2025-03-03 09:58++from django.db import migrations+++class Migration(migrations.Migration):+ dependencies = [+ ("checkout", "0074_alter_checkout_external_shipping_method_id"),+ ("checkout", "0076_checkout_save_billing_address_and_more"),+ ]++ operations = []diff --git a/saleor/checkout/models.py b/saleor/checkout/models.pyindex 06079f96aa..eaae18017d 100644--- a/saleor/checkout/models.py+++ b/saleor/checkout/models.py@@ -87,7 +87,7 @@ class Checkout(models.Model):max_length=255, null=True, default=None, blank=True, editable=False)external_shipping_method_id = models.CharField(- max_length=255, null=True, default=None, blank=True, editable=False+ max_length=512, null=True, default=None, blank=True, editable=False)collection_point = models.ForeignKey(