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