1 from django.db import migrations, models
2 import django.db.models.deletion
3 import jsonfield.fields
6 class Migration(migrations.Migration):
12 migrations.CreateModel(
15 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
16 ('tag', models.CharField(max_length=64)),
17 ('file', models.FileField(upload_to='contact/attachment')),
20 migrations.CreateModel(
23 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
24 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='submission date')),
25 ('ip', models.GenericIPAddressField(verbose_name='IP address')),
26 ('contact', models.EmailField(max_length=128, verbose_name='contact')),
27 ('form_tag', models.CharField(max_length=32, verbose_name='form', db_index=True)),
28 ('body', jsonfield.fields.JSONField(verbose_name='body')),
31 'ordering': ('-created_at',),
32 'verbose_name': 'submitted form',
33 'verbose_name_plural': 'submitted forms',
37 model_name='attachment',
39 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contact.Contact'),