Configure shop app, admin sidebar, media routing, and Stripe dependencies
This commit is contained in:
commit
93d83a0d63
188 files changed
+9220
No files matched your search
@@ -0,0 +1,83 @@
|
||||
# Generated by Django 5.2.19 on 2026-11-20 15:24
|
||||
|
||||
import catalog.models
|
||||
import django.core.validators
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Chapter',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('number', models.PositiveIntegerField(unique=True, validators=[django.core.validators.MinValueValidator(1)])),
|
||||
('title', models.CharField(max_length=180)),
|
||||
('cover', models.ImageField(blank=True, upload_to=catalog.models.image_path, validators=[catalog.models.validate_image])),
|
||||
('summary', models.TextField(blank=True, max_length=3000)),
|
||||
('publisher_url', models.URLField(blank=True, help_text='Optional: point to the official chapter on ONSOL-GO! instead of hosting pages here.', validators=[django.core.validators.URLValidator(schemes=['https'])])),
|
||||
('publish_at', models.DateTimeField(help_text='Chicago time. A draft stays private even after this date.')),
|
||||
('published', models.BooleanField(default=False, verbose_name='Publish when scheduled')),
|
||||
],
|
||||
options={
|
||||
'ordering': ['-number'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Entry',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('kind', models.CharField(choices=[('news', 'News'), ('cast', 'Cast'), ('world', 'World archive')], max_length=10)),
|
||||
('title', models.CharField(max_length=150)),
|
||||
('slug', models.SlugField(max_length=170, unique=True)),
|
||||
('summary', models.CharField(blank=True, max_length=240)),
|
||||
('body', models.TextField(max_length=12000)),
|
||||
('art', models.ImageField(blank=True, upload_to=catalog.models.image_path, validators=[catalog.models.validate_image])),
|
||||
('publish_at', models.DateTimeField()),
|
||||
('published', models.BooleanField(default=False, verbose_name='Publish when scheduled')),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Editorial entries',
|
||||
'ordering': ['-publish_at', '-pk'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SiteSettings',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(default='SLUMP X LAND', max_length=100)),
|
||||
('tagline', models.CharField(default='The official ManaA series hub', max_length=140)),
|
||||
('credit', models.CharField(default='Story and Art by Receo Thomas Gibson', max_length=140)),
|
||||
('intro', models.TextField(blank=True, max_length=4000)),
|
||||
('hero_art', models.ImageField(blank=True, upload_to=catalog.models.image_path, validators=[catalog.models.validate_image])),
|
||||
('blur_hero', models.BooleanField(default=False)),
|
||||
('publisher_url', models.URLField(blank=True, validators=[django.core.validators.URLValidator(schemes=['https'])])),
|
||||
('shop_url', models.URLField(blank=True, validators=[django.core.validators.URLValidator(schemes=['https'])])),
|
||||
('next_release_at', models.DateTimeField(blank=True, null=True)),
|
||||
('next_release_title', models.CharField(blank=True, max_length=120)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Site settings',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Page',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('number', models.PositiveIntegerField(validators=[django.core.validators.MinValueValidator(1)])),
|
||||
('art', models.ImageField(upload_to=catalog.models.image_path, validators=[catalog.models.validate_image])),
|
||||
('chapter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pages', to='catalog.chapter')),
|
||||
],
|
||||
options={
|
||||
'ordering': ['number'],
|
||||
'constraints': [models.UniqueConstraint(fields=('chapter', 'number'), name='unique_page_in_chapter')],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user