# Generated by Django 2.1.7 on 2019-06-21 15:10

import ckeditor_uploader.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import location_field.models.plain
import sorl.thumbnail.fields
import taggit_autosuggest.managers


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('taggit', '0003_taggeditem_add_unique_index'),
    ]

    operations = [
        migrations.CreateModel(
            name='Evento',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tittle', models.CharField(max_length=200, unique=True, verbose_name='Título')),
                ('foto', sorl.thumbnail.fields.ImageField(upload_to='eventos/', verbose_name='Foto')),
                ('descripcion', ckeditor_uploader.fields.RichTextUploadingField(verbose_name='Descripción')),
                ('inicio', models.DateField(verbose_name='Fecha de Inicio')),
                ('final', models.DateField(blank=True, null=True, verbose_name='Fecha de Finalización')),
                ('hora_inicio', models.TimeField(verbose_name='Hora inicio')),
                ('hora_fin', models.TimeField(verbose_name='Hora fin')),
                ('city', models.CharField(max_length=100, verbose_name='Dirección')),
                ('position', location_field.models.plain.PlainLocationField(max_length=63, verbose_name='Posición')),
                ('slug', models.SlugField(editable=False, max_length=200)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)),
                ('tags', taggit_autosuggest.managers.TaggableManager(blank=True, help_text='Separar elementos con "," ', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
            options={
                'verbose_name_plural': 'Eventos',
            },
        ),
    ]
