feat: implement blog features

This commit is contained in:
Konstantin 2024-02-29 21:13:03 +01:00
parent b93eabd429
commit 75662f9d98
28 changed files with 411 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Generated by Django 5.0.2 on 2024-02-29 19:28
import django.db.models.deletion
import wagtail.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
('wagtailcore', '0091_remove_revision_submitted_for_moderation'),
]
operations = [
migrations.CreateModel(
name='BlogPage',
fields=[
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')),
('date', models.DateField(verbose_name='Post date')),
('intro', models.CharField(max_length=250)),
('body', wagtail.fields.RichTextField(blank=True)),
],
options={
'abstract': False,
},
bases=('wagtailcore.page',),
),
]