bornhack-website/src/program/migrations/0001_initial.py

93 lines
3.0 KiB
Python
Raw Normal View History

2016-07-13 17:13:47 +00:00
# -*- coding: utf-8 -*-
2016-07-13 19:44:09 +00:00
# Generated by Django 1.9.6 on 2016-07-13 19:38
2017-01-30 11:16:07 +00:00
2016-07-13 17:13:47 +00:00
import django.db.models.deletion
from django.db import migrations, models
2016-07-13 17:13:47 +00:00
class Migration(migrations.Migration):
initial = True
2019-06-16 12:32:24 +00:00
dependencies = [("camps", "0005_auto_20160510_2011")]
2016-07-13 17:13:47 +00:00
operations = [
migrations.CreateModel(
2019-06-16 12:32:24 +00:00
name="Event",
2016-07-13 17:13:47 +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)),
("title", models.CharField(max_length=255)),
("description", models.TextField()),
("start", models.TimeField()),
("end", models.TimeField()),
("days", models.ManyToManyField(to="camps.Day")),
2016-07-13 17:13:47 +00:00
],
2019-06-16 12:32:24 +00:00
options={"abstract": False},
2016-07-13 17:13:47 +00:00
),
migrations.CreateModel(
2019-06-16 12:32:24 +00:00
name="EventType",
2016-07-13 17:13:47 +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(max_length=100)),
("slug", models.SlugField()),
2016-07-13 17:13:47 +00:00
],
2019-06-16 12:32:24 +00:00
options={"abstract": False},
2016-07-13 17:13:47 +00:00
),
migrations.CreateModel(
2019-06-16 12:32:24 +00:00
name="Speaker",
2016-07-13 17:13:47 +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(max_length=150)),
("biography", models.TextField()),
("picture", models.ImageField(blank=True, null=True, upload_to=b"")),
(
"events",
models.ManyToManyField(
related_name="speakers",
related_query_name="speaker",
to="program.Event",
),
),
2016-07-13 17:13:47 +00:00
],
2019-06-16 12:32:24 +00:00
options={"abstract": False},
2016-07-13 17:13:47 +00:00
),
migrations.AddField(
2019-06-16 12:32:24 +00:00
model_name="event",
name="event_type",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, to="program.EventType"
),
2016-07-13 17:13:47 +00:00
),
]