X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c226012e4114e09fd37cd384a2aada77476815cd..6a41571eecb01fc448e4d5d6a9d3059523988f18:/src/picture/migrations/0001_initial.py?ds=inline diff --git a/src/picture/migrations/0001_initial.py b/src/picture/migrations/0001_initial.py index 6280cf21e..11321d40b 100644 --- a/src/picture/migrations/0001_initial.py +++ b/src/picture/migrations/0001_initial.py @@ -1,9 +1,7 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from os.path import join from django.conf import settings from django.db import models, migrations +import django.db.models.deletion import sorl.thumbnail.fields import jsonfield.fields import django.core.files.storage @@ -49,7 +47,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('area', jsonfield.fields.JSONField(default={}, verbose_name='area', editable=False)), ('kind', models.CharField(db_index=True, max_length=10, verbose_name='form', choices=[('thing', 'thing'), ('theme', 'motif')])), - ('picture', models.ForeignKey(related_name='areas', to='picture.Picture')), + ('picture', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='areas', to='picture.Picture')), ], options={ },