fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Green border.
[wolnelektury.git]
/
src
/
api
/
migrations
/
0005_consumer_nonce_resource_token.py
diff --git
a/src/api/migrations/0005_consumer_nonce_resource_token.py
b/src/api/migrations/0005_consumer_nonce_resource_token.py
index
95873a7
..
9b706a4
100644
(file)
--- a/
src/api/migrations/0005_consumer_nonce_resource_token.py
+++ b/
src/api/migrations/0005_consumer_nonce_resource_token.py
@@
-1,7
+1,6
@@
-# -*- coding: utf-8 -*-
-# Generated by Django 1.11.20 on 2019-02-28 22:38
-from __future__ import unicode_literals
-
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
@@
-12,10
+11,9
@@
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0004_bookuserdata_last_changed'),
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0004_bookuserdata_last_changed'),
- ('piston', '0002_auto_20190228_2338'),
]
]
-
state_
operations = [
+ operations = [
migrations.CreateModel(
name='Consumer',
fields=[
migrations.CreateModel(
name='Consumer',
fields=[
@@
-24,7
+22,7
@@
class Migration(migrations.Migration):
('description', models.TextField()),
('key', models.CharField(max_length=18)),
('secret', models.CharField(max_length=32)),
('description', models.TextField()),
('key', models.CharField(max_length=18)),
('secret', models.CharField(max_length=32)),
- ('status', models.CharField(choices=[(
b'pending', b'Pending approval'), (b'accepted', b'Accepted'), (b'canceled', b'Canceled')], default=b
'pending', max_length=16)),
+ ('status', models.CharField(choices=[(
'pending', 'Pending approval'), ('accepted', 'Accepted'), ('canceled', 'Canceled')], default=
'pending', max_length=16)),
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='consumers', to=settings.AUTH_USER_MODEL)),
],
),
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='consumers', to=settings.AUTH_USER_MODEL)),
],
),
@@
-51,7
+49,3
@@
class Migration(migrations.Migration):
],
),
]
],
),
]
-
- operations = [
- migrations.SeparateDatabaseAndState(state_operations=state_operations),
- ]