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/projects/migrations/0001_initial.py

38 lines
1.5 KiB
Python
Raw Normal View History

2016-11-25 23:12:40 +00:00
# -*- coding: utf-8 -*-
2016-11-28 20:21:56 +00:00
# Generated by Django 1.10.3 on 2016-11-28 20:04
2016-11-25 23:12:40 +00:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtaildocs', '0007_merge'),
2016-11-28 20:21:56 +00:00
('wagtailcore', '0030_index_on_pagerevision_created_at'),
2016-11-25 23:12:40 +00:00
('wagtailimages', '0015_fill_filter_spec_field'),
]
operations = [
migrations.CreateModel(
name='ProjectPage',
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')),
2016-11-28 18:48:41 +00:00
('summary', models.CharField(max_length=500)),
2016-11-25 23:12:40 +00:00
('body', wagtail.wagtailcore.fields.RichTextField()),
2016-11-28 20:21:56 +00:00
('project_url', models.URLField(blank=True)),
('download_url', models.URLField(blank=True)),
2016-11-25 23:12:40 +00:00
('asset', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtaildocs.Document')),
('main_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
],
options={
'abstract': False,
},
bases=('wagtailcore.page',),
),
]