1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/project/home/migrations/0001_initial.py

36 lines
1.3 KiB
Python
Raw Permalink Normal View History

2016-11-22 21:50:21 +00:00
# -*- coding: utf-8 -*-
2016-12-15 22:11:51 +00:00
# Generated by Django 1.10.4 on 2016-12-15 22:11
2016-11-22 21:50:21 +00:00
from __future__ import unicode_literals
from django.db import migrations, models
2016-11-28 21:56:44 +00:00
import django.db.models.deletion
import wagtail.wagtailcore.fields
2016-12-15 22:11:51 +00:00
import wagtailmetadata.models
2016-11-22 21:50:21 +00:00
class Migration(migrations.Migration):
2016-11-28 21:56:44 +00:00
initial = True
2016-11-22 21:50:21 +00:00
dependencies = [
2016-12-15 22:11:51 +00:00
('wagtailimages', '0015_fill_filter_spec_field'),
2016-11-28 21:56:44 +00:00
('wagtailcore', '0030_index_on_pagerevision_created_at'),
2016-11-22 21:50:21 +00:00
]
operations = [
migrations.CreateModel(
name='HomePage',
fields=[
2016-11-28 21:56:44 +00:00
('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')),
('created', models.DateTimeField(auto_now_add=True)),
('modified', models.DateTimeField(auto_now=True)),
('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
2016-12-15 22:11:51 +00:00
('search_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
2016-11-22 21:50:21 +00:00
],
options={
'abstract': False,
},
2016-12-15 22:11:51 +00:00
bases=(wagtailmetadata.models.MetadataMixin, 'wagtailcore.page', models.Model),
2016-11-22 21:50:21 +00:00
),
]