From b24e48f1b16339a60db1ff6d1c5ebc5d6c4f20ef Mon Sep 17 00:00:00 2001 From: Artur Borecki Date: Mon, 18 May 2026 18:06:45 +0200 Subject: [PATCH] chore(purchase/migrations): add migrations 0005 & 0006 --- ...ter_purchasableproduct_options_and_more.py | 35 +++++++++++++++++++ ...6_purchasableproduct_stripe_payment_url.py | 18 ++++++++++ 2 files changed, 53 insertions(+) create mode 100644 purchase/migrations/0005_alter_purchasableproduct_options_and_more.py create mode 100644 purchase/migrations/0006_purchasableproduct_stripe_payment_url.py diff --git a/purchase/migrations/0005_alter_purchasableproduct_options_and_more.py b/purchase/migrations/0005_alter_purchasableproduct_options_and_more.py new file mode 100644 index 0000000..adad712 --- /dev/null +++ b/purchase/migrations/0005_alter_purchasableproduct_options_and_more.py @@ -0,0 +1,35 @@ +# Generated by Django 6.0.4 on 2026-05-18 15:35 + +import django.db.models.deletion +import modelcluster.fields +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('home', '0023_eventindexpage'), + ('purchase', '0004_purchasableproduct_course'), + ] + + operations = [ + migrations.AlterModelOptions( + name='purchasableproduct', + options={'ordering': ['sort_order']}, + ), + migrations.AddField( + model_name='purchasableproduct', + name='sort_order', + field=models.IntegerField(blank=True, editable=False, null=True), + ), + migrations.AlterField( + model_name='purchasableproduct', + name='course', + field=modelcluster.fields.ParentalKey(blank=True, help_text='Link this PurchasableProduct to a CoursePage for inline editing.', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='purchasable_products', to='home.coursepage'), + ), + migrations.AlterField( + model_name='purchasableproduct', + name='name', + field=models.CharField(blank=True, max_length=255), + ), + ] diff --git a/purchase/migrations/0006_purchasableproduct_stripe_payment_url.py b/purchase/migrations/0006_purchasableproduct_stripe_payment_url.py new file mode 100644 index 0000000..f672b93 --- /dev/null +++ b/purchase/migrations/0006_purchasableproduct_stripe_payment_url.py @@ -0,0 +1,18 @@ +# Generated by Django 6.0.4 on 2026-05-18 15:47 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('purchase', '0005_alter_purchasableproduct_options_and_more'), + ] + + operations = [ + migrations.AddField( + model_name='purchasableproduct', + name='stripe_payment_url', + field=models.URLField(blank=True, help_text='Stripe Checkout URL for this product (optional, can be set via admin or programmatically)', null=True), + ), + ]