# Generated by Django 2.0 on 2018-04-22 21:23 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import imagekit.models.fields class Migration(migrations.Migration): dependencies = [ ('events', '0027_add_category_topic_slug'), ] operations = [ migrations.CreateModel( name='Presentation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.SmallIntegerField(choices=[(-1, 'Declined'), (0, 'Proposed'), (1, 'Accepted')], db_index=True, default=0)), ('start_time', models.DateTimeField(blank=True, db_index=True, null=True, verbose_name='Start Time')), ('created_time', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='events.UserProfile')), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='presentations', to='events.Event')), ], ), migrations.CreateModel( name='Speaker', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('avatar', imagekit.models.fields.ProcessedImageField(blank=True, upload_to='avatars', verbose_name='Photo Image')), ('title', models.CharField(blank=True, max_length=256, null=True)), ('bio', models.TextField(blank=True)), ], ), migrations.CreateModel( name='SpeakerRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Event')), ], ), migrations.CreateModel( name='Talk', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=256)), ('abstract', models.TextField()), ('talk_type', models.SmallIntegerField(choices=[(0, 'Presentation'), (1, 'Workshop'), (2, 'Panel'), (3, 'Roundtable'), (4, 'Q & A'), (5, 'Demonstration')], default=0, verbose_name='Type')), ('web_url', models.URLField(blank=True, null=True, verbose_name='Website')), ], ), migrations.AlterModelOptions( name='category', options={'verbose_name_plural': 'Categories'}, ), migrations.AlterModelOptions( name='country', options={'ordering': ('name',), 'verbose_name_plural': 'Countries'}, ), migrations.AlterModelOptions( name='eventseries', options={'verbose_name_plural': 'Event series'}, ), migrations.AlterField( model_name='category', name='slug', field=models.CharField(blank=True, max_length=256), ), migrations.AlterField( model_name='topic', name='description', field=models.TextField(blank=True), ), migrations.AlterField( model_name='topic', name='slug', field=models.CharField(blank=True, max_length=256), ), migrations.AddField( model_name='talk', name='category', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='events.Category'), ), migrations.AddField( model_name='talk', name='speaker', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Speaker'), ), migrations.AddField( model_name='talk', name='topics', field=models.ManyToManyField(blank=True, to='events.Topic'), ), migrations.AddField( model_name='speakerrequest', name='topics', field=models.ManyToManyField(blank=True, to='events.Topic'), ), migrations.AddField( model_name='speaker', name='categories', field=models.ManyToManyField(blank=True, to='events.Category'), ), migrations.AddField( model_name='speaker', name='topics', field=models.ManyToManyField(blank=True, to='events.Topic'), ), migrations.AddField( model_name='speaker', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.UserProfile'), ), migrations.AddField( model_name='presentation', name='talk', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='presentations', to='events.Talk'), ), ]