# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-28 17:32
from __future__ import unicode_literals

import ckeditor.fields
import destinations.models
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('destinations', '0020_auto_20170203_1251'),
    ]

    operations = [
        migrations.CreateModel(
            name='Event',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('website_url', models.URLField(blank=True, null=True)),
                ('description', ckeditor.fields.RichTextField()),
                ('start_date', models.DateTimeField()),
                ('end_date', models.DateTimeField()),
                ('image', models.ImageField(help_text=b'The small image. Will be displayed at 310x155.', null=True, upload_to=destinations.models.generate_filename)),
                ('wide_image', models.ImageField(help_text=b'The large image. Will be displayed at 680x400.', null=True, upload_to=destinations.models.generate_filename)),
                ('published', models.BooleanField(default=False)),
                ('priority', models.IntegerField(default=9999)),
                ('destination', models.ForeignKey(null=True, blank=True, on_delete=django.db.models.deletion.SET_NULL, to='destinations.Destination')),
            ],
            options={
                'ordering': ['priority', '-start_date'],
            },
        ),
    ]

[(21, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (22, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(50)'}), False, 'from django.db import migrations, models\n'), (23, 'django.db.models.URLField', 'models.URLField', ([], {'blank': '(True)', 'null': '(True)'}), False, 'from django.db import migrations, models\n'), (25, 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {}), False, 'from django.db import migrations, models\n'), (26, 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {}), False, 'from django.db import migrations, models\n'), (27, 'django.db.models.ImageField', 'models.ImageField', ([], {'help_text': "b'The small image. Will be displayed at 310x155.'", 'null': '(True)', 'upload_to': 'destinations.models.generate_filename'}), False, 'from django.db import migrations, models\n'), (28, 'django.db.models.ImageField', 'models.ImageField', ([], {'help_text': "b'The large image. Will be displayed at 680x400.'", 'null': '(True)', 'upload_to': 'destinations.models.generate_filename'}), False, 'from django.db import migrations, models\n'), (29, 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)'}), False, 'from django.db import migrations, models\n'), (30, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(9999)'}), False, 'from django.db import migrations, models\n'), (31, 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'null': '(True)', 'blank': '(True)', 'on_delete': 'django.db.models.deletion.SET_NULL', 'to': '"""destinations.Destination"""'}), False, 'from django.db import migrations, models\n')]