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

68 lines
2.5 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
2016-07-13 17:13:47 +00:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
2016-07-13 19:44:09 +00:00
('camps', '0005_auto_20160510_2011'),
2016-07-13 17:13:47 +00:00
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('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()),
2016-07-13 19:44:09 +00:00
('start', models.TimeField()),
('end', models.TimeField()),
('days', models.ManyToManyField(to='camps.Day')),
2016-07-13 17:13:47 +00:00
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='EventType',
fields=[
('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()),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Speaker',
fields=[
('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()),
2016-07-13 19:44:09 +00:00
('picture', models.ImageField(blank=True, null=True, upload_to=b'')),
2016-07-13 17:13:47 +00:00
('events', models.ManyToManyField(related_name='speakers', related_query_name='speaker', to='program.Event')),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='event',
name='event_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='program.EventType'),
),
]