# Generated by Django 3.1.5 on 2021-01-29 18:35

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


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('legacy_id', models.IntegerField(blank=True, null=True)),
                ('legacy_rubrik_id', models.IntegerField(blank=True, null=True)),
                ('title', models.CharField(max_length=200, verbose_name='Titel')),
                ('subtitle', models.CharField(blank=True, max_length=500, null=True)),
                ('slug', models.SlugField(blank=True, unique=True)),
                ('body', models.TextField(blank=True, null=True)),
                ('image', models.ImageField(blank=True, null=True, upload_to='')),
                ('public_date', models.DateField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Veröffentlichung')),
                ('imported_from', models.CharField(blank=True, max_length=200, null=True)),
                ('post_type', models.CharField(choices=[('N', 'News'), ('E', 'Event'), ('F', 'FetMeeting')], max_length=1)),
                ('is_pinned', models.BooleanField(default=False, verbose_name='ANGEHEFTET')),
                ('is_hidden', models.BooleanField(default=False, verbose_name='UNSICHTBAR')),
                ('event_start', models.DateTimeField(blank=True, null=True, verbose_name='Event Start')),
                ('event_end', models.DateTimeField(blank=True, null=True, verbose_name='Event Ende')),
                ('event_place', models.CharField(blank=True, max_length=200, null=True)),
                ('has_protocol', models.BooleanField(default=False)),
                ('has_agenda', models.BooleanField(default=False)),
                ('protocol_key', models.CharField(blank=True, max_length=200, null=True)),
                ('agenda_key', models.CharField(blank=True, max_length=200, null=True)),
                ('date_modified', models.DateTimeField(auto_now=True)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
                ('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('subtitle', models.CharField(blank=True, max_length=500, null=True)),
                ('slug', models.SlugField(blank=True, null=True, unique=True)),
                ('image', models.ImageField(blank=True, null=True, upload_to='')),
                ('tags', taggit.managers.TaggableManager(blank=True, help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
            options={
                'verbose_name': 'Category',
                'verbose_name_plural': 'Categories',
            },
        ),
        migrations.CreateModel(
            name='Event',
            fields=[
            ],
            options={
                'verbose_name': 'Event',
                'verbose_name_plural': 'Events',
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('posts.post',),
            managers=[
                ('only_events', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='News',
            fields=[
            ],
            options={
                'verbose_name': 'News',
                'verbose_name_plural': 'News',
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('posts.post',),
        ),
        migrations.CreateModel(
            name='FetMeeting',
            fields=[
            ],
            options={
                'verbose_name': 'Fet Sitzung',
                'verbose_name_plural': 'Fet Sitzungen',
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('posts.event',),
        ),
    ]
