Configure shop app, admin sidebar, media routing, and Stripe dependencies

This commit is contained in:
zach committed 2026-11-24 00:16:35 +00:00
commit 93d83a0d63
188 files changed
+9220

No files matched your search

@@ -0,0 +1,30 @@
# Generated by Django 5.2.19 on 2026-11-23 17:52
import catalog.models
import catalog.sharing
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0023_shop_variants_and_newsletter_names'),
]
operations = [
migrations.CreateModel(
name='PageSharePreview',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('path', models.CharField(help_text='Choose a page or paste its path, such as /chapters/9/. Include the trailing slash.', max_length=200, unique=True, validators=[catalog.sharing.validate_share_path], verbose_name='Page path')),
('title', models.CharField(blank=True, help_text='Optional. Leave blank to use the page’s normal preview title.', max_length=120, verbose_name='Share title')),
('excerpt', models.CharField(blank=True, help_text='A short description for the link card. Leave blank to use the page’s default excerpt.', max_length=220, verbose_name='Share excerpt')),
('art', catalog.models.StudioImageField(blank=True, help_text='Public artwork for link cards. A 1200 × 630 JPG, PNG or WebP is a good starting point.', upload_to=catalog.models.image_path, validators=[catalog.models.validate_image], verbose_name='Share image')),
],
options={
'verbose_name': 'link preview',
'verbose_name_plural': 'link previews',
'ordering': ['path'],
},
),
]