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