2016-12-25 14:52:55 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.10.4 on 2016-12-12 18:09
|
2017-01-30 11:16:07 +00:00
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
|
|
|
|
import django.db.models.deletion
|
2020-02-12 12:10:41 +00:00
|
|
|
from django.db import migrations, models
|
2016-12-25 14:52:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2019-06-16 12:32:24 +00:00
|
|
|
("camps", "0007_auto_20161212_1803"),
|
|
|
|
("program", "0009_auto_20160827_0752"),
|
2016-12-25 14:52:55 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-06-16 12:32:24 +00:00
|
|
|
name="EventInstance",
|
2016-12-25 14:52:55 +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)),
|
|
|
|
("start", models.DateTimeField()),
|
|
|
|
("end", models.DateTimeField()),
|
2016-12-25 14:52:55 +00:00
|
|
|
],
|
2019-06-16 12:32:24 +00:00
|
|
|
options={"ordering": ["start"]},
|
2016-12-25 14:52:55 +00:00
|
|
|
),
|
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"),
|
2016-12-25 14:52:55 +00:00
|
|
|
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"
|
|
|
|
),
|
2016-12-25 14:52:55 +00:00
|
|
|
),
|
|
|
|
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",
|
|
|
|
),
|
2016-12-25 14:52:55 +00:00
|
|
|
),
|
|
|
|
]
|