50 lines
1.5 KiB
Python
50 lines
1.5 KiB
Python
# Generated by Django 5.0.6 on 2024-06-12 16:25
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("blog", "0001_initial"),
|
|
("wagtailcore", "0093_uploadedfile"),
|
|
("wagtailimages", "0026_delete_uploadedimage"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="BlogIndexPage",
|
|
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",
|
|
),
|
|
),
|
|
(
|
|
"introduction",
|
|
models.TextField(blank=True, help_text="Description de la page"),
|
|
),
|
|
(
|
|
"image",
|
|
models.ForeignKey(
|
|
blank=True,
|
|
help_text="Image du blog",
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
related_name="+",
|
|
to="wagtailimages.image",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"abstract": False,
|
|
},
|
|
bases=("wagtailcore.page",),
|
|
),
|
|
]
|