summaryrefslogtreecommitdiff
path: root/app/pages/migrations/0001_initial.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/pages/migrations/0001_initial.py')
-rw-r--r--app/pages/migrations/0001_initial.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/pages/migrations/0001_initial.py b/app/pages/migrations/0001_initial.py
new file mode 100644
index 0000000..fe5ef96
--- /dev/null
+++ b/app/pages/migrations/0001_initial.py
@@ -0,0 +1,49 @@
+# Generated by Django 3.2.8 on 2021-10-06 20:30
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('sites', '0002_alter_domain_unique'),
+ ('media', '__first__'),
+ ('posts', '__first__'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Page',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(max_length=200)),
+ ('sub_title', models.CharField(blank=True, max_length=300)),
+ ('slug', models.SlugField()),
+ ('body_html', models.TextField(blank=True)),
+ ('body_markdown', models.TextField()),
+ ('meta_description', models.CharField(blank=True, max_length=256)),
+ ('path', models.CharField(blank=True, max_length=200)),
+ ('app', models.CharField(blank=True, max_length=50)),
+ ('build', models.BooleanField(default=True)),
+ ('enable_comments', models.BooleanField(default=False)),
+ ('pub_date', models.DateTimeField(blank=True, null=True, verbose_name='Date published')),
+ ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')),
+ ('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sites.site')),
+ ],
+ ),
+ migrations.CreateModel(
+ name='HomePage',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('image_offset_vertical', models.CharField(help_text='add negative top margin to shift image (include css unit)', max_length=20)),
+ ('tag_line', models.CharField(blank=True, max_length=200, null=True)),
+ ('template_name', models.CharField(blank=True, help_text='full path', max_length=200, null=True)),
+ ('featured', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='banner', to='posts.post')),
+ ('featured_image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='media.luximage')),
+ ('popular', models.ManyToManyField(related_name='popular', to='posts.Post')),
+ ],
+ ),
+ ]