1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.db import migrations, models
5 import django.db.models.deletion
8 class Migration(migrations.Migration):
14 migrations.CreateModel(
17 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18 ('tag', models.CharField(max_length=64)),
19 ('file', models.FileField(upload_to='contact/attachment')),
22 migrations.CreateModel(
25 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
26 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='submission date')),
27 ('ip', models.GenericIPAddressField(verbose_name='IP address')),
28 ('contact', models.EmailField(max_length=128, verbose_name='contact')),
29 ('form_tag', models.CharField(max_length=32, verbose_name='form', db_index=True)),
30 ('body', models.TextField(verbose_name='body')),
33 'ordering': ('-created_at',),
34 'verbose_name': 'submitted form',
35 'verbose_name_plural': 'submitted forms',
39 model_name='attachment',
41 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contact.Contact'),