chore(purchase/migrations): add migrations 0005 & 0006

This commit is contained in:
2026-05-18 18:06:45 +02:00
parent 211dcc4f67
commit b24e48f1b1
2 changed files with 53 additions and 0 deletions

View File

@@ -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),
),
]

View File

@@ -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),
),
]