# -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-20 13:51
from __future__ import unicode_literals

import cms.models.fields
from django.db import migrations, models
import django.db.models.deletion
import parler.models


class Migration(migrations.Migration):

    dependencies = [
        ('cms', '0018_pagenode'),
        ('project', '0003_titlelist_titlelistitem'),
    ]

    operations = [
        migrations.CreateModel(
            name='Notification',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('published', models.BooleanField(default=True, verbose_name='Veröffentlicht')),
                ('updated', models.DateTimeField(auto_now=True, verbose_name='Aktualisiert')),
                ('page', cms.models.fields.PageField(on_delete=django.db.models.deletion.CASCADE, to='cms.Page', verbose_name='Seite')),
            ],
            options={
                'verbose_name': 'Benachrichtigung',
                'verbose_name_plural': 'Benachrichtigungen',
            },
            bases=(parler.models.TranslatableModelMixin, models.Model),
        ),
        migrations.CreateModel(
            name='NotificationTranslation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('language_code', models.CharField(db_index=True, max_length=15, verbose_name='Language')),
                ('title', models.CharField(blank=True, max_length=256, null=True, verbose_name='Titel')),
                ('text', models.TextField(blank=True, null=True, verbose_name='Text')),
                ('cta', models.CharField(blank=True, max_length=256, null=True, verbose_name='CTA Text')),
                ('master', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='translations', to='project.Notification')),
            ],
            options={
                'verbose_name': 'Benachrichtigung Translation',
                'db_tablespace': '',
                'db_table': 'project_notification_translation',
                'managed': True,
                'default_permissions': (),
            },
        ),
        migrations.AlterModelOptions(
            name='slideritemqualification',
            options={'ordering': ['ordering'], 'verbose_name': 'Slider Qualifikation', 'verbose_name_plural': 'Slider Qualifikationen'},
        ),
        migrations.AlterModelOptions(
            name='slideritemqualificationtranslation',
            options={'default_permissions': (), 'managed': True, 'verbose_name': 'Slider Qualifikation Translation'},
        ),
        migrations.AlterUniqueTogether(
            name='notificationtranslation',
            unique_together=set([('language_code', 'master')]),
        ),
    ]
