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

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


class Migration(migrations.Migration):

    dependencies = [
        ('trainings', '0003_auto_20150408_1620'),
        ('sync', '0001_initial'),
        ('metaplans', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='MetaplanTemplate',
            fields=[
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('id', django_extensions.db.fields.UUIDField(editable=False, primary_key=True, blank=True, serialize=False)),
                ('title', models.CharField(max_length=100)),
                ('first_update', models.ForeignKey(related_name='metaplantemplate_by_first', blank=True, null=True, to='sync.Update')),
                ('last_update', models.ForeignKey(related_name='metaplantemplate_by_last', blank=True, null=True, to='sync.Update')),
                ('training', models.ForeignKey(blank=True, null=True, to='trainings.Training')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.RenameField(
            model_name='metaplanproposition',
            old_name='proposition_type',
            new_name='group',
        ),
        migrations.RenameField(
            model_name='metaplanproposition',
            old_name='proposition',
            new_name='text',
        ),
        migrations.RemoveField(
            model_name='metaplanproposition',
            name='meta_plan',
        ),
        migrations.AddField(
            model_name='metaplanproposition',
            name='metaplan',
            field=models.ForeignKey(blank=True, null=True, to='metaplans.MetaPlan'),
        ),
        migrations.AddField(
            model_name='metaplan',
            name='template',
            field=models.ForeignKey(blank=True, null=True, to='metaplans.MetaplanTemplate'),
        ),
    ]
