Instead of working with django model mixins it now uses a separate model entity to keep track of the personalized pages (metadata). The current downside of this approach is that the segment of an existing variant is no longer easily adjustable for now.
31 lines
892 B
Python
31 lines
892 B
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.1 on 2017-05-31 16:59
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import modelcluster.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('wagtailcore', '0033_remove_golive_expiry_help_text'),
|
|
('wagtail_personalisation', '0011_personalisablepagemetadata'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='HomePage',
|
|
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')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('wagtailcore.page', models.Model),
|
|
),
|
|
]
|