Use unmanaged keys instead of some magic.
[redakcja.git] / src / apiclient / migrations / 0001_initial.py
1 # This file is part of FNP-Redakcja, 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 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='OAuthConnection',
17             fields=[
18                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19                 ('access', models.BooleanField(default=False)),
20                 ('token', models.CharField(max_length=64, null=True, blank=True)),
21                 ('token_secret', models.CharField(max_length=64, null=True, blank=True)),
22                 ('beta', models.BooleanField(default=False)),
23                 ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)),
24             ],
25             options={
26             },
27             bases=(models.Model,),
28         ),
29     ]