Skip to content
Snippets Groups Projects
Commit 4a5f060a authored by Todd Dembrey's avatar Todd Dembrey
Browse files

sort out the apply homepage migrations

parent dad3cd9e
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-22 09:28
# Generated by Django 1.11.8 on 2018-01-09 18:58
from __future__ import unicode_literals
from django.db import migrations, models
......@@ -11,7 +11,6 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
('images', '0001_initial'),
('wagtailcore', '0040_page_draft_title'),
]
......@@ -25,6 +24,6 @@ class Migration(migrations.Migration):
options={
'abstract': False,
},
bases=('wagtailcore.page', models.Model),
bases=('wagtailcore.page',),
),
]
......@@ -9,11 +9,11 @@ def create_homepage(apps, schema_editor):
ContentType = apps.get_model('contenttypes.ContentType')
Page = apps.get_model('wagtailcore.Page')
Site = apps.get_model('wagtailcore.Site')
ApplyHomePage = apps.get_model('apply.ApplyHomePage')
ApplyHomePage = apps.get_model('apply_home.ApplyHomePage')
# Create content type for homepage model
homepage_content_type, created = ContentType.objects.get_or_create(
model='applyhomepage', app_label='apply')
model='applyhomepage', app_label='apply_home')
# Create a new homepage
applyhomepage = ApplyHomePage.objects.create(
......@@ -36,7 +36,7 @@ class Migration(migrations.Migration):
dependencies = [
('funds', '0001_initial'),
('home', '0001_initial'),
('apply_home', '0001_initial'),
]
operations = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment