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,30 @@
|
||||
# Generated by Django 5.2.19 on 2026-11-22 13:37
|
||||
|
||||
import catalog.backgrounds
|
||||
import catalog.models
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('catalog', '0019_countdown_social_links'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='PageBackground',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('path', models.CharField(help_text='Choose a page or enter its exact path, such as /chapters/9/ or /blog/your-post/.', max_length=200, unique=True, validators=[catalog.backgrounds.validate_background_path], verbose_name='Page path')),
|
||||
('art', catalog.models.StudioImageField(blank=True, help_text='Optional, publicly visible backdrop. Use an image you intend to publish.', upload_to=catalog.models.image_path, validators=[catalog.models.validate_image], verbose_name='Background artwork')),
|
||||
('color', models.CharField(default='#0c0e15', max_length=7, validators=[django.core.validators.RegexValidator('\\A#[0-9a-fA-F]{6}\\Z', 'Enter a six-digit hex color.')], verbose_name='Background color / tint')),
|
||||
('tint_strength', models.PositiveSmallIntegerField(default=40, help_text='With artwork: 0 shows the original image, 100 shows only the color.', validators=[django.core.validators.MaxValueValidator(100)], verbose_name='Tint strength (%)')),
|
||||
('enabled', models.BooleanField(default=True, help_text='Uncheck to return to the normal site background without losing these settings.', verbose_name='Enabled')),
|
||||
],
|
||||
options={
|
||||
'ordering': ['path'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user