# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
from djrichtextfield.models import RichTextField
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Institution',
            fields=[
                ('id', models.AutoField(primary_key=True,
                                        auto_created=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('kind', models.CharField(choices=[('u', 'University'), ('c', 'College'), (
                    'i', 'Industry'), ('n', 'National Laboratory')], max_length=2)),
            ],
            options={
                'ordering': ['name'],
            },
        ),
        migrations.CreateModel(
            name='Talk',
            fields=[
                ('id', models.AutoField(primary_key=True,
                                        auto_created=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField(default=django.utils.timezone.now)),
                ('speaker', models.CharField(max_length=255)),
                ('title', models.CharField(max_length=200)),
                ('abstract', RichTextField(null=True, blank=True)),
                ('url', models.URLField(blank=True)),
                ('pic', models.ImageField(height_field='height',
                                          width_field='width', null=True, blank=True, upload_to='talks')),
                ('height', models.SmallIntegerField(null=True, default=0)),
                ('width', models.SmallIntegerField(null=True, default=0)),
                ('inst', models.ForeignKey(to='colloquium.Institution',
                                           blank=True, on_delete=models.CASCADE)),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
    ]
