X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c226012e4114e09fd37cd384a2aada77476815cd..05b7014d1d710937c6a4b5cdccdb4890f377818d:/src/contact/migrations/0001_initial.py?ds=sidebyside 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'), ), ]