X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c226012e4114e09fd37cd384a2aada77476815cd..4dad587dac33c6c04d9a1a594fbbd1c58dbf2bda:/src/contact/migrations/0001_initial.py diff --git a/src/contact/migrations/0001_initial.py b/src/contact/migrations/0001_initial.py index 1c0a565b4..08f688fc9 100644 --- a/src/contact/migrations/0001_initial.py +++ b/src/contact/migrations/0001_initial.py @@ -1,8 +1,8 @@ -# -*- 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): @@ -27,7 +27,7 @@ class Migration(migrations.Migration): ('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',), @@ -38,6 +38,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'), ), ]