2015-10-16 17:36:58 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-09-17 05:53:47 +00:00
|
|
|
# Generated by Django 1.9.7 on 2016-09-17 03:35
|
2015-10-16 17:36:58 +00:00
|
|
|
import datetime
|
|
|
|
from django.conf import settings
|
2016-09-17 05:53:47 +00:00
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
2015-10-16 17:36:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2016-09-17 05:53:47 +00:00
|
|
|
initial = True
|
|
|
|
|
2015-10-16 17:36:58 +00:00
|
|
|
dependencies = [
|
2016-09-17 05:53:47 +00:00
|
|
|
('symposion_proposals', '__first__'),
|
2015-10-16 17:36:58 +00:00
|
|
|
('symposion_speakers', '__first__'),
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
('symposion_conference', '0001_initial'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Day',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2015-10-16 17:36:58 +00:00
|
|
|
('date', models.DateField(verbose_name='Date')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ['date'],
|
|
|
|
'verbose_name': 'date',
|
|
|
|
'verbose_name_plural': 'dates',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Presentation',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2015-10-16 17:36:58 +00:00
|
|
|
('title', models.CharField(max_length=100, verbose_name='Title')),
|
|
|
|
('abstract', models.TextField(verbose_name='Abstract')),
|
|
|
|
('abstract_html', models.TextField(blank=True)),
|
|
|
|
('cancelled', models.BooleanField(default=False, verbose_name='Cancelled')),
|
2016-09-17 05:53:47 +00:00
|
|
|
('additional_speakers', models.ManyToManyField(blank=True, related_name='copresentations', to='symposion_speakers.Speaker', verbose_name='Additional speakers')),
|
|
|
|
('proposal_base', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='presentation', to='symposion_proposals.ProposalBase', verbose_name='Proposal base')),
|
|
|
|
('section', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='presentations', to='symposion_conference.Section', verbose_name='Section')),
|
2015-10-16 17:36:58 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ['slot'],
|
|
|
|
'verbose_name': 'presentation',
|
|
|
|
'verbose_name_plural': 'presentations',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Room',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2015-10-16 17:36:58 +00:00
|
|
|
('name', models.CharField(max_length=65, verbose_name='Name')),
|
|
|
|
('order', models.PositiveIntegerField(verbose_name='Order')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Room',
|
|
|
|
'verbose_name_plural': 'Rooms',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Schedule',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2015-10-16 17:36:58 +00:00
|
|
|
('published', models.BooleanField(default=True, verbose_name='Published')),
|
|
|
|
('hidden', models.BooleanField(default=False, verbose_name='Hide schedule from overall conference view')),
|
2016-09-17 05:53:47 +00:00
|
|
|
('section', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='symposion_conference.Section', verbose_name='Section')),
|
2015-10-16 17:36:58 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ['section'],
|
|
|
|
'verbose_name': 'Schedule',
|
|
|
|
'verbose_name_plural': 'Schedules',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Session',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('day', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sessions', to='symposion_schedule.Day', verbose_name='Day')),
|
2015-10-16 17:36:58 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Session',
|
|
|
|
'verbose_name_plural': 'Sessions',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='SessionRole',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('role', models.IntegerField(choices=[(1, 'Session Chair'), (2, 'Session Runner')], verbose_name='Role')),
|
2015-10-16 17:36:58 +00:00
|
|
|
('status', models.NullBooleanField(verbose_name='Status')),
|
|
|
|
('submitted', models.DateTimeField(default=datetime.datetime.now)),
|
2016-09-17 05:53:47 +00:00
|
|
|
('session', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_schedule.Session', verbose_name='Session')),
|
|
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='User')),
|
2015-10-16 17:36:58 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Session role',
|
|
|
|
'verbose_name_plural': 'Session roles',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Slot',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('name', models.CharField(editable=False, max_length=100)),
|
2015-10-16 17:36:58 +00:00
|
|
|
('start', models.TimeField(verbose_name='Start')),
|
|
|
|
('end', models.TimeField(verbose_name='End')),
|
2016-09-17 05:53:47 +00:00
|
|
|
('content_override', models.TextField(blank=True, verbose_name='Content override')),
|
2015-10-16 17:36:58 +00:00
|
|
|
('content_override_html', models.TextField(blank=True)),
|
2016-09-17 05:53:47 +00:00
|
|
|
('day', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_schedule.Day', verbose_name='Day')),
|
2015-10-16 17:36:58 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ['day', 'start', 'end'],
|
|
|
|
'verbose_name': 'slot',
|
|
|
|
'verbose_name_plural': 'slots',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='SlotKind',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2015-10-16 17:36:58 +00:00
|
|
|
('label', models.CharField(max_length=50, verbose_name='Label')),
|
2016-09-17 05:53:47 +00:00
|
|
|
('schedule', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_schedule.Schedule', verbose_name='schedule')),
|
2015-10-16 17:36:58 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Slot kind',
|
|
|
|
'verbose_name_plural': 'Slot kinds',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='SlotRoom',
|
|
|
|
fields=[
|
2016-09-17 05:53:47 +00:00
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('room', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_schedule.Room', verbose_name='Room')),
|
|
|
|
('slot', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_schedule.Slot', verbose_name='Slot')),
|
2015-10-16 17:36:58 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ['slot', 'room__order'],
|
|
|
|
'verbose_name': 'Slot room',
|
|
|
|
'verbose_name_plural': 'Slot rooms',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='slot',
|
|
|
|
name='kind',
|
2016-09-17 05:53:47 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_schedule.SlotKind', verbose_name='Kind'),
|
2015-10-16 17:36:58 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='session',
|
|
|
|
name='slots',
|
2016-09-17 05:53:47 +00:00
|
|
|
field=models.ManyToManyField(related_name='sessions', to='symposion_schedule.Slot', verbose_name='Slots'),
|
2015-10-16 17:36:58 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='room',
|
|
|
|
name='schedule',
|
2016-09-17 05:53:47 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_schedule.Schedule', verbose_name='Schedule'),
|
2015-10-16 17:36:58 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='presentation',
|
|
|
|
name='slot',
|
2016-09-17 05:53:47 +00:00
|
|
|
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='content_ptr', to='symposion_schedule.Slot', verbose_name='Slot'),
|
2015-10-16 17:36:58 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='presentation',
|
|
|
|
name='speaker',
|
2016-09-17 05:53:47 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='presentations', to='symposion_speakers.Speaker', verbose_name='Speaker'),
|
2015-10-16 17:36:58 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='day',
|
|
|
|
name='schedule',
|
2016-09-17 05:53:47 +00:00
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='symposion_schedule.Schedule', verbose_name='Schedule'),
|
2015-10-16 17:36:58 +00:00
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='slotroom',
|
|
|
|
unique_together=set([('slot', 'room')]),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='sessionrole',
|
|
|
|
unique_together=set([('session', 'user', 'role')]),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='day',
|
|
|
|
unique_together=set([('schedule', 'date')]),
|
|
|
|
),
|
|
|
|
]
|