bornhack-website/src/teams/migrations/0017_auto_20171122_1928.py

63 lines
2 KiB
Python
Raw Normal View History

2017-11-23 22:09:14 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-11-22 18:28
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations, models
2017-11-23 22:09:14 +00:00
class Migration(migrations.Migration):
2019-06-16 12:32:24 +00:00
dependencies = [("teams", "0016_auto_20170711_2247")]
2017-11-23 22:09:14 +00:00
operations = [
migrations.CreateModel(
2019-06-16 12:32:24 +00:00
name="TeamTask",
2017-11-23 22:09:14 +00:00
fields=[
2019-06-16 12:32:24 +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 name of this task", max_length=100
),
),
(
"slug",
models.SlugField(
blank=True,
help_text="url slug, leave blank to autogenerate",
max_length=255,
),
),
(
"description",
models.TextField(
help_text="Description of the task. Markdown is supported."
),
),
(
"team",
models.ForeignKey(
help_text="The team this task belongs to",
on_delete=django.db.models.deletion.CASCADE,
to="teams.Team",
),
),
2017-11-23 22:09:14 +00:00
],
2019-06-16 12:32:24 +00:00
options={"ordering": ["name"]},
2017-11-23 22:09:14 +00:00
),
migrations.AlterUniqueTogether(
2019-06-16 12:32:24 +00:00
name="teamtask", unique_together=set([("slug", "team"), ("name", "team")])
2017-11-23 22:09:14 +00:00
),
]