# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-04 13:12
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import embed_video.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('marks', '0001_initial'),
        ('articles', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='ApprenticeTaskAnswer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                ('custom_title', models.CharField(blank=True, max_length=50, verbose_name='dodatkowy tytuł')),
            ],
            options={
                'verbose_name': 'odpowiedź ucznia do zadania',
                'verbose_name_plural': 'odpowiedzi uczniów do zadań',
            },
        ),
        migrations.CreateModel(
            name='ApprenticeVideo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                ('yt_video', embed_video.fields.EmbedVideoField(blank=True, null=True, verbose_name='link youtube')),
                ('reflection', models.TextField(blank=True, verbose_name='refleksja')),
            ],
            options={
                'verbose_name': 'video do zadania',
                'verbose_name_plural': 'video do zadania',
            },
        ),
        migrations.CreateModel(
            name='Path',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=70, verbose_name='nazwa')),
                ('is_path_blocking', models.BooleanField(default=True, verbose_name='czy blokująca?')),
                ('image', models.ImageField(blank=True, null=True, upload_to='path_images/', verbose_name='grafika')),
            ],
            options={
                'verbose_name': 'ścieżka',
                'verbose_name_plural': 'ścieżki',
            },
        ),
        migrations.CreateModel(
            name='Task',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_active', models.BooleanField(default=True, verbose_name='czy aktywne?')),
                ('title', models.CharField(blank=True, max_length=70, verbose_name='tytuł')),
                ('subtitle', models.CharField(blank=True, max_length=70, verbose_name='podtytuł')),
                ('header', models.CharField(blank=True, max_length=70, verbose_name='nagłówek')),
                ('image', models.ImageField(blank=True, null=True, upload_to='path_images/', verbose_name='grafika')),
                ('description', models.TextField(blank=True, verbose_name='opis')),
                ('instruction', models.TextField(blank=True, verbose_name='instrukcja')),
                ('articles', models.ManyToManyField(blank=True, related_name='tasks', to='articles.Article', verbose_name='zadania')),
            ],
            options={
                'verbose_name': 'zadanie',
                'verbose_name_plural': 'zadania',
            },
        ),
        migrations.CreateModel(
            name='TaskMarkCriteria',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mark_criteria', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='task_mark_criteria', to='marks.MarkCriteria', verbose_name='kryterium oceny')),
                ('task', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='task_mark_criteria', to='tasks.Task', verbose_name='zadanie')),
            ],
        ),
        migrations.AddField(
            model_name='task',
            name='mark_criteria',
            field=models.ManyToManyField(blank=True, related_name='tasks', through='tasks.TaskMarkCriteria', to='marks.MarkCriteria', verbose_name='kryteria_oceny'),
        ),
        migrations.AddField(
            model_name='task',
            name='path',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to='tasks.Path', verbose_name='ścieżka'),
        ),
    ]
