# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-06-16 14:55
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('renkanmanager', '0004_change_guid_field_type'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='revision',
            options={'ordering': ['-modification_date'], 'permissions': (('view_revision', 'Can view revision'),)},
        ),
        migrations.AddField(
            model_name='renkan',
            name='current_revision',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='renkanmanager.Revision'),
        ),
        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='copies', to='renkanmanager.Revision'),
        ),
        migrations.AddField(
            model_name='renkan',
            name='workspace',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='renkanmanager.Workspace'),
        ),
        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'),
        ),
        migrations.AlterField(
            model_name='revision',
            name='modification_date',
            field=models.DateTimeField(auto_now_add=True),
        ),
    ]
