2015-01-28 20:35:27 +08:00
|
|
|
from django.db import migrations, models
|
2014-09-14 15:57:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
("sites", "0001_initial"),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="CustomArticle",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
verbose_name="ID",
|
|
|
|
serialize=False,
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
),
|
2022-02-04 03:24:19 +08:00
|
|
|
),
|
2014-09-14 15:57:57 +08:00
|
|
|
("title", models.CharField(max_length=50)),
|
2015-07-22 22:43:21 +08:00
|
|
|
(
|
|
|
|
"places_this_article_should_appear",
|
|
|
|
models.ForeignKey("sites.Site", models.CASCADE),
|
2022-02-04 03:24:19 +08:00
|
|
|
),
|
2014-09-14 15:57:57 +08:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
"abstract": False,
|
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="ExclusiveArticle",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
verbose_name="ID",
|
|
|
|
serialize=False,
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
),
|
2022-02-04 03:24:19 +08:00
|
|
|
),
|
2014-09-14 15:57:57 +08:00
|
|
|
("title", models.CharField(max_length=50)),
|
2015-07-22 22:43:21 +08:00
|
|
|
("site", models.ForeignKey("sites.Site", models.CASCADE)),
|
2014-09-14 15:57:57 +08:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
"abstract": False,
|
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="SyndicatedArticle",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
verbose_name="ID",
|
|
|
|
serialize=False,
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
),
|
2022-02-04 03:24:19 +08:00
|
|
|
),
|
2014-09-14 15:57:57 +08:00
|
|
|
("title", models.CharField(max_length=50)),
|
2015-07-22 22:43:21 +08:00
|
|
|
("sites", models.ManyToManyField("sites.Site")),
|
2014-09-14 15:57:57 +08:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
"abstract": False,
|
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|