8

start using correct model in tests

This commit is contained in:
Paul J Stevens
2017-05-31 13:48:30 +02:00
committed by Michael van Tellingen
parent f693e62bbf
commit 623af1a06a
4 changed files with 36 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-31 06:50
# Generated by Django 1.11.1 on 2017-05-31 06:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.fields
from django.db import migrations, models
class Migration(migrations.Migration):
@@ -12,20 +12,23 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtail_personalisation', '0008_devicerule'),
('wagtail_personalisation', '0009_auto_20170531_0428'),
]
operations = [
migrations.CreateModel(
name='HomePage',
fields=[
('personalisablepage_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtail_personalisation.PersonalisablePage')),
('subtitle', models.CharField(max_length=255)),
('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')),
('is_segmented', models.BooleanField(default=False)),
('subtitle', models.CharField(blank=True, default='', max_length=255)),
('body', wagtail.wagtailcore.fields.RichTextField(blank=True, default='')),
('canonical_page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='variations', to='pages.HomePage')),
('segment', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='segments', to='wagtail_personalisation.Segment')),
],
options={
'abstract': False,
},
bases=('wagtail_personalisation.personalisablepage',),
bases=('wagtailcore.page', models.Model),
),
]