# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-04-19 10:08
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('renkanmanager', '0003_auto_20160105_0954'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='renkan',
            options={'permissions': (('view_renkan', 'Can view renkan'),)},
        ),
        migrations.AlterModelOptions(
            name='revision',
            options={'permissions': (('view_revision', 'Can view revision'),)},
        ),
        migrations.AlterModelOptions(
            name='workspace',
            options={'permissions': (('view_workspace', 'Can view workspace'),)},
        ),
        migrations.AddField(
            model_name='renkan',
            name='source_revision',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='renkan_source_revision', to='renkanmanager.Revision', to_field='revision_guid'),
        ),
        migrations.AddField(
            model_name='renkan',
            name='workspace',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='renkanmanager.Workspace', to_field='workspace_guid'),
        ),
        migrations.AddField(
            model_name='revision',
            name='parent_renkan',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='renkanmanager.Renkan', to_field='renkan_guid'),
        ),
    ]
