khaganat-web/pages/migrations/0001_initial.py
2018-01-13 15:45:54 +01:00

35 lines
1.3 KiB
Python

# Generated by Django 2.0.1 on 2018-01-13 14:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('slug', models.CharField(max_length=200, unique=True)),
('default', models.BooleanField(default=False)),
],
),
migrations.CreateModel(
name='PageContent',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('language', models.CharField(choices=[('en', 'English'), ('fr', 'French')], max_length=10)),
('created_on', models.DateTimeField(auto_now_add=True)),
('edited_on', models.DateTimeField(auto_now=True)),
('title', models.CharField(max_length=200)),
('content', models.TextField()),
('page', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pages.Page')),
],
),
]