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 models, migrations
5 import django.db.models.deletion
6 from django.conf import settings
9 class Migration(migrations.Migration):
12 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
16 migrations.CreateModel(
17 name='PublishingSuggestion',
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)),
28 'ordering': ('-created_at',),
29 'verbose_name': 'publishing suggestion',
30 'verbose_name_plural': 'publishing suggestions',
32 bases=(models.Model,),
34 migrations.CreateModel(
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)),
45 'ordering': ('-created_at',),
46 'verbose_name': 'suggestion',
47 'verbose_name_plural': 'suggestions',
49 bases=(models.Model,),