1 from django.db import migrations, models
2 import django.db.models.deletion
5 class Migration(migrations.Migration):
11 migrations.CreateModel(
14 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
15 ('tag', models.CharField(max_length=64)),
16 ('file', models.FileField(upload_to='contact/attachment')),
19 migrations.CreateModel(
22 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
23 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='submission date')),
24 ('ip', models.GenericIPAddressField(verbose_name='IP address')),
25 ('contact', models.EmailField(max_length=128, verbose_name='contact')),
26 ('form_tag', models.CharField(max_length=32, verbose_name='form', db_index=True)),
27 ('body', models.TextField(verbose_name='body')),
30 'ordering': ('-created_at',),
31 'verbose_name': 'submitted form',
32 'verbose_name_plural': 'submitted forms',
36 model_name='attachment',
38 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contact.Contact'),