X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c226012e4114e09fd37cd384a2aada77476815cd..75957f735219259d3b4bc361f80ccd3d7b92a0e9:/src/contact/migrations/0001_initial.py?ds=inline diff --git a/src/contact/migrations/0001_initial.py b/src/contact/migrations/0001_initial.py index 1c0a565b4..216c4c508 100644 --- a/src/contact/migrations/0001_initial.py +++ b/src/contact/migrations/0001_initial.py @@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models +import django.db.models.deletion import jsonfield.fields @@ -38,6 +36,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='attachment', name='contact', - field=models.ForeignKey(to='contact.Contact'), + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contact.Contact'), ), ]