bornhack-website/src/program/migrations/0010_auto_20161212_1809.py

56 lines
1.7 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-12 18:09
2017-01-30 11:16:07 +00:00
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
2019-06-16 12:32:24 +00:00
("camps", "0007_auto_20161212_1803"),
("program", "0009_auto_20160827_0752"),
]
operations = [
migrations.CreateModel(
2019-06-16 12:32:24 +00:00
name="EventInstance",
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)),
("start", models.DateTimeField()),
("end", models.DateTimeField()),
],
2019-06-16 12:32:24 +00:00
options={"ordering": ["start"]},
),
2019-06-16 12:32:24 +00:00
migrations.RemoveField(model_name="event", name="days"),
migrations.RemoveField(model_name="event", name="end"),
migrations.RemoveField(model_name="event", name="start"),
migrations.AddField(
2019-06-16 12:32:24 +00:00
model_name="event",
name="camp",
field=models.ForeignKey(
null=True, on_delete=django.db.models.deletion.CASCADE, to="camps.Camp"
),
),
migrations.AddField(
2019-06-16 12:32:24 +00:00
model_name="eventinstance",
name="event",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="instances",
to="program.Event",
),
),
]