# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-01 16:19
from __future__ import unicode_literals

from django.db import migrations, models
import django.utils.timezone
import webapp.utils


class Migration(migrations.Migration):

    dependencies = [
        ("webapp", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="Feed",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "publish_time",
                    models.DateTimeField(default=django.utils.timezone.now),
                ),
                ("autohide", models.BooleanField(default=False)),
                (
                    "autohide_time",
                    models.DateTimeField(default=webapp.utils.month_from_now),
                ),
                ("topic", models.CharField(max_length=255)),
                ("description", models.CharField(max_length=255)),
                ("content", models.TextField()),
            ],
        ),
        migrations.RemoveField(
            model_name="info",
            name="tags",
        ),
        migrations.RemoveField(
            model_name="infotr",
            name="translation_for",
        ),
        migrations.RemoveField(
            model_name="tagtr",
            name="translation_for",
        ),
        migrations.RemoveField(
            model_name="tag",
            name="dummyname",
        ),
        migrations.AddField(
            model_name="tag",
            name="name",
            field=models.CharField(default="", max_length=127),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name="tag",
            name="slug",
            field=models.SlugField(default=""),
            preserve_default=False,
        ),
        migrations.DeleteModel(
            name="Info",
        ),
        migrations.DeleteModel(
            name="InfoTr",
        ),
        migrations.DeleteModel(
            name="TagTr",
        ),
        migrations.AddField(
            model_name="feed",
            name="tags",
            field=models.ManyToManyField(related_name="news", to="webapp.Tag"),
        ),
    ]
