2015-01-24 19:10:58 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import django.utils.timezone
|
|
|
|
import model_utils.fields
|
2018-11-19 23:28:40 +01:00
|
|
|
from django.db import migrations, models
|
2015-01-24 19:10:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2023-02-18 22:46:48 +01:00
|
|
|
("domains", "0002_auto_20150124_1909"),
|
|
|
|
("hostingpackages", "0003_auto_20150118_1407"),
|
2015-01-24 19:10:58 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2023-02-18 22:46:48 +01:00
|
|
|
name="CustomerHostingPackageDomain",
|
2015-01-24 19:10:58 +01:00
|
|
|
fields=[
|
2023-02-18 22:46:48 +01:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
verbose_name="ID",
|
|
|
|
serialize=False,
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"created",
|
|
|
|
model_utils.fields.AutoCreatedField(
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
verbose_name="created",
|
|
|
|
editable=False,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"modified",
|
|
|
|
model_utils.fields.AutoLastModifiedField(
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
verbose_name="modified",
|
|
|
|
editable=False,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"domain",
|
|
|
|
models.OneToOneField(
|
|
|
|
verbose_name="hosting domain",
|
|
|
|
to="domains.HostingDomain",
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"hosting_package",
|
|
|
|
models.ForeignKey(
|
|
|
|
related_name="domains",
|
|
|
|
verbose_name="hosting package",
|
|
|
|
to="hostingpackages.CustomerHostingPackage",
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
),
|
|
|
|
),
|
2015-01-24 19:10:58 +01:00
|
|
|
],
|
|
|
|
options={
|
2023-02-18 22:46:48 +01:00
|
|
|
"abstract": False,
|
2015-01-24 19:10:58 +01:00
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|