This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/articles/migrations/0006_page.py

32 lines
825 B
Python
Raw Normal View History

2020-08-17 09:57:24 +02:00
# Generated by Django 3.1 on 2020-08-17 07:00
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("articles", "0005_article_slug"),
]
operations = [
migrations.CreateModel(
name="Page",
fields=[
(
"article_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="articles.article",
),
),
],
bases=("articles.article",),
),
]