2015-01-26 22:47:49 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-11-19 23:28:40 +01:00
|
|
|
from django.db import migrations, models
|
2015-01-26 22:47:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2023-02-18 22:46:48 +01:00
|
|
|
("osusers", "0004_auto_20150104_1751"),
|
|
|
|
("domains", "0002_auto_20150124_1909"),
|
2015-01-26 22:47:49 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2023-02-18 22:46:48 +01:00
|
|
|
name="Website",
|
2015-01-26 22:47:49 +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,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"subdomain",
|
|
|
|
models.CharField(max_length=64, verbose_name="sub domain"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"wildcard",
|
|
|
|
models.BooleanField(default=False, verbose_name="wildcard"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"domain",
|
|
|
|
models.ForeignKey(
|
|
|
|
verbose_name="domain",
|
|
|
|
to="domains.HostingDomain",
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"osuser",
|
|
|
|
models.ForeignKey(
|
|
|
|
verbose_name="operating system user",
|
|
|
|
to="osusers.User",
|
|
|
|
on_delete=models.CASCADE,
|
|
|
|
),
|
|
|
|
),
|
2015-01-26 22:47:49 +01:00
|
|
|
],
|
|
|
|
options={
|
2023-02-18 22:46:48 +01:00
|
|
|
"verbose_name": "website",
|
|
|
|
"verbose_name_plural": "websites",
|
2015-01-26 22:47:49 +01:00
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2023-02-18 22:46:48 +01:00
|
|
|
name="website",
|
|
|
|
unique_together={("domain", "subdomain")},
|
2015-01-26 22:47:49 +01:00
|
|
|
),
|
|
|
|
]
|