-# -*- coding: utf-8 -*-
-from __future__ import unicode_literals
-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from django.db import migrations, models
-import jsonfield.fields
+import django.db.models.deletion
class Migration(migrations.Migration):
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(
('ip', models.GenericIPAddressField(verbose_name='IP address')),
('contact', models.EmailField(max_length=128, verbose_name='contact')),
('form_tag', models.CharField(max_length=32, verbose_name='form', db_index=True)),
- ('body', jsonfield.fields.JSONField(verbose_name='body')),
+ ('body', models.TextField(verbose_name='body')),
],
options={
'ordering': ('-created_at',),
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'),
),
]