Update forms app.
[wolnelektury.git] / src / suggest / migrations / 0001_initial.py
1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.db import models, migrations
5 import django.db.models.deletion
6 from django.conf import settings
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13     ]
14
15     operations = [
16         migrations.CreateModel(
17             name='PublishingSuggestion',
18             fields=[
19                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
20                 ('contact', models.CharField(max_length=120, verbose_name='Contact', blank=True)),
21                 ('books', models.TextField(null=True, verbose_name='Books', blank=True)),
22                 ('audiobooks', models.TextField(null=True, verbose_name='audiobooks', blank=True)),
23                 ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='creation date')),
24                 ('ip', models.GenericIPAddressField(verbose_name='IP address')),
25                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, blank=True, to=settings.AUTH_USER_MODEL, null=True)),
26             ],
27             options={
28                 'ordering': ('-created_at',),
29                 'verbose_name': 'publishing suggestion',
30                 'verbose_name_plural': 'publishing suggestions',
31             },
32             bases=(models.Model,),
33         ),
34         migrations.CreateModel(
35             name='Suggestion',
36             fields=[
37                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
38                 ('contact', models.CharField(max_length=120, verbose_name='Contact', blank=True)),
39                 ('description', models.TextField(verbose_name='Description', blank=True)),
40                 ('created_at', models.DateTimeField(auto_now=True, verbose_name='creation date')),
41                 ('ip', models.GenericIPAddressField(verbose_name='IP address')),
42                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, blank=True, to=settings.AUTH_USER_MODEL, null=True)),
43             ],
44             options={
45                 'ordering': ('-created_at',),
46                 'verbose_name': 'suggestion',
47                 'verbose_name_plural': 'suggestions',
48             },
49             bases=(models.Model,),
50         ),
51     ]