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

from django.db import models, migrations
from django.conf import settings
import markitup.fields


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Talk',
            fields=[
                ('talk_id', models.AutoField(serialize=False, primary_key=True)),
                ('title', models.CharField(max_length=1024)),
                ('abstract', markitup.fields.MarkupField(help_text='Write two or three paragraphs describing your talk. Who is your audience? What will they get out of it? What will you cover?<br />You can use Markdown syntax.', no_rendered_field=True)),
                ('notes', models.TextField(help_text='Any notes for the conference organisers?', null=True, blank=True)),
                ('status', models.CharField(default=b'P', max_length=1, choices=[(b'A', b'Accepted'), (b'R', b'Not Accepted'), (b'P', b'Under Consideration')])),
                ('_abstract_rendered', models.TextField(editable=False, blank=True)),
                ('authors', models.ManyToManyField(related_name='talks', to=settings.AUTH_USER_MODEL)),
                ('corresponding_author', models.ForeignKey(related_name='contact_talks', to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='TalkType',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=255)),
                ('description', models.TextField(max_length=1024)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='TalkUrl',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('description', models.CharField(max_length=256)),
                ('url', models.URLField()),
                ('talk', models.ForeignKey(to='talks.Talk',
                                           on_delete=models.CASCADE)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.AddField(
            model_name='talk',
            name='talk_type',
            field=models.ForeignKey(to='talks.TalkType', null=True,
                                    on_delete=models.SET_NULL),
            preserve_default=True,
        ),
    ]

@@ -434,16 +434,37 @@
 toField(
+%0A                    
 serializ
@@ -484,32 +484,32 @@
 ary_key=True)),%0A
-
                 
@@ -607,24 +607,45 @@
 MarkupField(
+%0A                    
 help_text='W
@@ -689,16 +689,49 @@
 ng your 
+'%0A                              '
 talk. Wh
@@ -769,16 +769,49 @@
 hey get 
+'%0A                              '
 out of i
@@ -847,16 +847,49 @@
 You can 
+'%0A                              '
 use Mark
@@ -902,16 +902,36 @@
 yntax.',
+%0A                   
  no_rend
@@ -992,16 +992,37 @@
 xtField(
+%0A                    
 help_tex
@@ -1066,16 +1066,36 @@
 isers?',
+%0A                   
  null=Tr
@@ -1156,16 +1156,37 @@
 arField(
+%0A                    
 default=
@@ -1218,28 +1218,77 @@
 es=%5B
-(b'A', b'Accepted'),
+%0A                        (b'A', b'Accepted'),%0A                       
  (b'
@@ -1308,16 +1308,40 @@
 epted'),
+%0A                       
  (b'P', 
@@ -1424,16 +1424,37 @@
 xtField(
+%0A                    
 editable
@@ -1526,16 +1526,37 @@
 nyField(
+%0A                    
 related_
@@ -1659,16 +1659,37 @@
 eignKey(
+%0A                    
 related_
@@ -1738,16 +1738,36 @@
 R_MODEL,
+%0A                   
  on_dele
@@ -1999,32 +1999,53 @@
 odels.AutoField(
+%0A                    
 verbose_name='ID
@@ -2074,32 +2074,52 @@
 to_created=True,
+%0A                   
  primary_key=Tru
@@ -2470,16 +2470,37 @@
 toField(
+%0A                    
 verbose_
@@ -2545,16 +2545,36 @@
 ed=True,
+%0A                   
  primary

Tidy migration