Updates and fixes.
[wolnelektury.git] / src / contact / migrations / 0001_initial.py
index 1c0a565..216c4c5 100644 (file)
@@ -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'),
         ),
     ]