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

from django.db import models, migrations
import django.db.models.deletion
import django.utils.timezone
from django.conf import settings


class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
                ('headline', models.CharField(max_length=255, verbose_name='rubrik', help_text='Rubriken till artikeln')),
                ('lead', models.TextField(verbose_name='ingress', help_text='Ingressen är den text som syns i nyhetsflödet. Max 160 tecken.')),
                ('body', models.TextField(blank=True, verbose_name='brödtext', null=True, help_text='Brödtext syns när en artikel visas enskilt.')),
                ('visible_from', models.DateTimeField(default=django.utils.timezone.now, verbose_name='publicering', help_text='Publiceringsdatum')),
                ('visible_to', models.DateTimeField(blank=True, verbose_name='avpublicering', default=None, null=True, help_text='Avpubliceringsdatum')),
                ('status', models.CharField(max_length=1, choices=[('d', 'Utkast'), ('p', 'Publicerat'), ('h', 'Dolt')], default='d')),
                ('created', models.DateTimeField(editable=False)),
                ('modified', models.DateTimeField(editable=False)),
                ('user', models.ForeignKey(help_text='Användaren som skrivit texten', null=True, verbose_name='användare', on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name_plural': 'Blogginlägg',
                'verbose_name': 'Blogginlägg',
            },
        ),
    ]
