7
This repository has been archived on 2023-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cavemanon-wagtail-personali…/src/wagtail_personalisation/migrations/0008_devicerule.py
Michael Yick b8d7dd53ae Support Wagtail 4.2 (#1)
Co-authored-by: nick.moreton <nick.moreton@torchbox.com>
Co-authored-by: Nick Moreton <nick.moreton@torchbox.com>
Reviewed-on: #1
2023-05-07 03:25:48 +00:00

49 lines
1.6 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-04-20 15:47
from __future__ import unicode_literals
import django.db.models.deletion
import modelcluster.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtail_personalisation", "0007_dayrule"),
]
operations = [
migrations.CreateModel(
name="DeviceRule",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"mobile",
models.BooleanField(default=False, verbose_name="Mobile phone"),
),
("tablet", models.BooleanField(default=False, verbose_name="Tablet")),
("desktop", models.BooleanField(default=False, verbose_name="Desktop")),
(
"segment",
modelcluster.fields.ParentalKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="wagtail_personalisation_devicerule_related",
related_query_name="wagtail_personalisation_devicerules",
to="wagtail_personalisation.Segment",
),
),
],
options={
"abstract": False,
},
),
]