Sith/com/migrations/0003_auto_20170115_2300.py

92 lines
3.3 KiB
Python
Raw Normal View History

2017-01-02 23:07:45 +00:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django.db.models.deletion
2024-06-24 11:07:36 +00:00
from django.conf import settings
from django.db import migrations, models
2017-01-02 23:07:45 +00:00
class Migration(migrations.Migration):
dependencies = [
2018-10-04 19:29:19 +00:00
("club", "0006_auto_20161229_0040"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
2018-10-04 19:29:19 +00:00
("com", "0002_news_newsdate"),
2017-01-02 23:07:45 +00:00
]
operations = [
migrations.CreateModel(
2018-10-04 19:29:19 +00:00
name="Weekmail",
2017-01-02 23:07:45 +00:00
fields=[
2018-10-04 19:29:19 +00:00
(
"id",
models.AutoField(
serialize=False,
primary_key=True,
verbose_name="ID",
auto_created=True,
),
),
(
"title",
models.CharField(max_length=64, verbose_name="title", blank=True),
),
("intro", models.TextField(verbose_name="intro", blank=True)),
("joke", models.TextField(verbose_name="joke", blank=True)),
("protip", models.TextField(verbose_name="protip", blank=True)),
("conclusion", models.TextField(verbose_name="conclusion", blank=True)),
("sent", models.BooleanField(verbose_name="sent", default=False)),
2017-01-02 23:07:45 +00:00
],
2018-10-04 19:29:19 +00:00
options={"ordering": ["-id"]},
2017-01-02 23:07:45 +00:00
),
migrations.CreateModel(
2018-10-04 19:29:19 +00:00
name="WeekmailArticle",
2017-01-02 23:07:45 +00:00
fields=[
2018-10-04 19:29:19 +00:00
(
"id",
models.AutoField(
serialize=False,
primary_key=True,
verbose_name="ID",
auto_created=True,
),
),
("title", models.CharField(max_length=64, verbose_name="title")),
("content", models.TextField(verbose_name="content")),
("rank", models.IntegerField(verbose_name="rank", default=-1)),
(
"author",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
2018-10-04 19:29:19 +00:00
to=settings.AUTH_USER_MODEL,
verbose_name="author",
related_name="owned_weekmail_articles",
),
),
(
"club",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
2018-10-04 19:29:19 +00:00
to="club.Club",
verbose_name="club",
related_name="weekmail_articles",
),
),
(
"weekmail",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
2018-10-04 19:29:19 +00:00
to="com.Weekmail",
verbose_name="weekmail",
related_name="articles",
null=True,
),
),
2017-01-02 23:07:45 +00:00
],
),
migrations.AddField(
2018-10-04 19:29:19 +00:00
model_name="sith",
name="weekmail_destinations",
field=models.TextField(verbose_name="weekmail destinations", default=""),
2017-01-02 23:07:45 +00:00
),
]