-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
from django.db import migrations, models
+import django.db.models.deletion
import jsonfield.fields
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('tag', models.CharField(max_length=64)),
- ('file', models.FileField(upload_to=b'contact/attachment')),
+ ('file', models.FileField(upload_to='contact/attachment')),
],
),
migrations.CreateModel(
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'),
),
]