# -*- 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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='MarkCriteria',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.IntegerField(verbose_name='nazwa')),
                ('position', models.PositiveIntegerField(blank=True, default=0, verbose_name='pozycja')),
            ],
            options={
                'verbose_name': 'kryterium oceny',
                'verbose_name_plural': 'kryteria ocen',
                'ordering': ('position',),
            },
        ),
        migrations.CreateModel(
            name='MarkCriteriaGroup',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=70, verbose_name='nazwa')),
                ('position', models.PositiveIntegerField(blank=True, default=0, verbose_name='pozycja')),
            ],
            options={
                'verbose_name': 'grupa kryteriów ocen',
                'verbose_name_plural': 'grupy kryteriów ocen',
                'ordering': ('position',),
            },
        ),
        migrations.AddField(
            model_name='markcriteria',
            name='group',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='marks', to='marks.MarkCriteriaGroup', verbose_name='grupa ocen'),
        ),
    ]
