1 from django.db import models, migrations
2 import django.db.models.deletion
3 from django.conf import settings
6 class Migration(migrations.Migration):
9 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13 migrations.CreateModel(
14 name='PublishingSuggestion',
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)),
25 'ordering': ('-created_at',),
26 'verbose_name': 'publishing suggestion',
27 'verbose_name_plural': 'publishing suggestions',
29 bases=(models.Model,),
31 migrations.CreateModel(
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)),
42 'ordering': ('-created_at',),
43 'verbose_name': 'suggestion',
44 'verbose_name_plural': 'suggestions',
46 bases=(models.Model,),