1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Generated by Django 3.1.3 on 2020-11-30 22:44
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.AutoField(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.AutoField(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')),
],
),
]
|