Update librarian
[wolnelektury.git] / src / picture / migrations / 0001_initial.py
index 6280cf2..11321d4 100644 (file)
@@ -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={
             },