# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-15 20:59
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('catalog', '0002_topic'),
    ]

    operations = [
        migrations.CreateModel(
            name='News',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=512)),
                ('date', models.DateTimeField(verbose_name=b'Publication Date')),
                ('text', models.TextField(blank=True, default=b'', verbose_name=b'News Text')),
                ('url', models.URLField(max_length=512, verbose_name=b'URL')),
                ('publisher', models.ForeignKey(default=b'', on_delete=django.db.models.deletion.CASCADE, to='catalog.Publisher')),
                ('topic', models.ManyToManyField(blank=True, to='catalog.Topic', verbose_name=b'Topic(s)')),
            ],
            options={
                'ordering': ('date',),
                'verbose_name': 'Noticia',
                'verbose_name_plural': 'Noticias',
            },
        ),
    ]
