1
0
mirror of https://github.com/ae-utbm/sith.git synced 2025-07-25 11:19:57 +00:00
Files
.github
accounting
antispam
club
com
migrations
0001_initial.py
0002_news_newsdate.py
0003_auto_20170115_2300.py
0004_auto_20171221_1614.py
0005_auto_20180318_2227.py
0006_remove_sith_index_page.py
0007_alter_news_club_alter_news_content_and_more.py
0008_alter_news_options_alter_newsdate_options_and_more.py
0009_remove_news_is_moderated_news_is_published.py
__init__.py
static
templates
tests
__init__.py
admin.py
api.py
apps.py
forms.py
ics_calendar.py
models.py
schemas.py
signals.py
urls.py
views.py
core
counter
docs
eboutic
election
forum
galaxy
launderette
locale
matmat
pedagogy
rootplace
sas
sith
staticfiles
subscription
trombi
.coveragerc
.env.example
.envrc
.gitattributes
.gitignore
.mailmap
.npmrc
.pre-commit-config.yaml
.python-version
CONTRIBUTING.rst
LICENSE
Procfile.service
Procfile.static
README.md
biome.json
conftest.py
manage.py
mkdocs.yml
openapi-csrf.ts
openapi-ts.config.ts
package-lock.json
package.json
pyproject.toml
tsconfig.json
uv.lock
vite.config.mts
Sith/com/migrations/0003_auto_20170115_2300.py
2024-07-08 15:37:09 +02:00

91 lines
3.2 KiB
Python

from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("club", "0006_auto_20161229_0040"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("com", "0002_news_newsdate"),
]
operations = [
migrations.CreateModel(
name="Weekmail",
fields=[
(
"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)),
],
options={"ordering": ["-id"]},
),
migrations.CreateModel(
name="WeekmailArticle",
fields=[
(
"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,
to=settings.AUTH_USER_MODEL,
verbose_name="author",
related_name="owned_weekmail_articles",
),
),
(
"club",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="club.Club",
verbose_name="club",
related_name="weekmail_articles",
),
),
(
"weekmail",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="com.Weekmail",
verbose_name="weekmail",
related_name="articles",
null=True,
),
),
],
),
migrations.AddField(
model_name="sith",
name="weekmail_destinations",
field=models.TextField(verbose_name="weekmail destinations", default=""),
),
]