2020-02-13 21:07:28 +00:00
|
|
|
# Generated by Django 3.0.3 on 2020-02-09 18:24
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
2020-06-22 15:25:08 +00:00
|
|
|
from django.db import migrations, models
|
2020-02-13 21:07:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
2020-06-22 15:25:08 +00:00
|
|
|
("teams", "0051_auto_20190312_1129"),
|
2020-02-13 21:07:28 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2020-06-22 15:25:08 +00:00
|
|
|
name="Wish",
|
2020-02-13 21:07:28 +00:00
|
|
|
fields=[
|
2020-06-22 15:25:08 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("created", models.DateTimeField(auto_now_add=True)),
|
|
|
|
("updated", models.DateTimeField(auto_now=True)),
|
|
|
|
(
|
|
|
|
"name",
|
|
|
|
models.CharField(
|
|
|
|
help_text="Short description of the wish", max_length=100
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("slug", models.SlugField(help_text="The url slug for this wish")),
|
|
|
|
(
|
|
|
|
"description",
|
|
|
|
models.TextField(
|
|
|
|
help_text="Description of the needed item. Markdown is supported!"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"count",
|
|
|
|
models.IntegerField(default=1, help_text="How many do we need?"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"fulfilled",
|
|
|
|
models.BooleanField(
|
|
|
|
default=False,
|
|
|
|
help_text="A Wish is marked as fulfilled when we no longer need the thing.",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"team",
|
|
|
|
models.ForeignKey(
|
|
|
|
help_text="The team that needs this thing. When in doubt pick Orga :)",
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="wishes",
|
|
|
|
to="teams.Team",
|
|
|
|
),
|
|
|
|
),
|
2020-02-13 21:07:28 +00:00
|
|
|
],
|
2020-06-22 15:25:08 +00:00
|
|
|
options={"abstract": False,},
|
2020-02-13 21:07:28 +00:00
|
|
|
),
|
|
|
|
]
|