src/iconolab/migrations/0033_auto_20180802_1409.py
author ymh <ymh.work@gmail.com>
Thu, 02 Aug 2018 16:10:31 +0200
changeset 592 a87ffe8e08e5
permissions -rw-r--r--
Alter models links constraint to allow annotations deletions in the admin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
592
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
# Generated by Django 2.0.6 on 2018-08-02 14:09
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
from django.db import migrations, models
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
import django.db.models.deletion
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
class Migration(migrations.Migration):
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    dependencies = [
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
        ('iconolab', '0032_auto_20180704_1131'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    ]
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    operations = [
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
            model_name='annotation',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
            name='current_revision',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
            field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='current_for_annotation', to='iconolab.AnnotationRevision'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
            model_name='annotation',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
            name='source_revision',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='source_related_annotation', to='iconolab.AnnotationRevision'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
            model_name='annotationrevision',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
            name='annotation',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='revisions', to='iconolab.Annotation'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
            model_name='annotationrevision',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
            name='merge_parent_revision',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='child_revisions_merge', to='iconolab.AnnotationRevision'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
            model_name='annotationrevision',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
            name='parent_revision',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='child_revisions', to='iconolab.AnnotationRevision'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
            model_name='annotationstats',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
            name='annotation',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='stats', to='iconolab.Annotation'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
            model_name='image',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
            name='item',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='images', to='iconolab.Item'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
            model_name='imagestats',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
            name='image',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='stats', to='iconolab.Image'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
        migrations.AlterField(
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
            model_name='itemmetadata',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
            name='item',
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='metadatas', to='iconolab.Item'),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
        ),
a87ffe8e08e5 Alter models links constraint to allow annotations deletions in the admin
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
    ]