Skip to content

Commit b92bfc6

Browse files
committed
Merge tag '0.8.2'
Conflicts: README.rst docs/changelog.rst
2 parents d45431e + 3e1a47f commit b92bfc6

File tree

5 files changed

+51
-4
lines changed

5 files changed

+51
-4
lines changed

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Roadmap / Todo list (help wanted)
8787
Changelog
8888
---------
8989

90+
9091
master branch
9192
~~~~~~~~~~~~~
9293

@@ -95,6 +96,11 @@ master branch
9596
* #238: Fixed redirect uri handling in case of error
9697
* #229: Invalidate access tokens when getting a new refresh token
9798

99+
0.8.2 [2015-06-25]
100+
~~~~~~~~~~~~~~~~~~
101+
102+
* Fix the migrations to be two-step and allow upgrade from 0.7.2
103+
98104
0.8.1 [2015-04-27]
99105
~~~~~~~~~~~~~~~~~~
100106

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ master branch
1010
* #229: Invalidate access tokens when getting a new refresh token
1111

1212

13+
0.8.2 [2015-06-25]
14+
------------------
15+
16+
* Fix the migrations to be two-step and allow upgrade from 0.7.2
17+
18+
1319
0.8.1 [2015-04-27]
1420
------------------
1521

oauth2_provider/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.8.1'
1+
__version__ = '0.8.2'
22

33
__author__ = "Massimiliano Pippi & Federico Frenguelli"
44

oauth2_provider/migrations/0001_initial.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ class Migration(migrations.Migration):
2626
('authorization_grant_type', models.CharField(max_length=32, choices=[('authorization-code', 'Authorization code'), ('implicit', 'Implicit'), ('password', 'Resource owner password-based'), ('client-credentials', 'Client credentials')])),
2727
('client_secret', models.CharField(default=oauth2_provider.generators.generate_client_secret, max_length=255, db_index=True, blank=True)),
2828
('name', models.CharField(max_length=255, blank=True)),
29-
('skip_authorization', models.BooleanField(default=False)),
30-
('user', models.ForeignKey(related_name='oauth2_provider_application', to=settings.AUTH_USER_MODEL)),
29+
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
3130
],
3231
options={
3332
'abstract': False,
@@ -41,7 +40,7 @@ class Migration(migrations.Migration):
4140
('expires', models.DateTimeField()),
4241
('scope', models.TextField(blank=True)),
4342
('application', models.ForeignKey(to=oauth2_settings.APPLICATION_MODEL)),
44-
('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
43+
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
4544
],
4645
),
4746
migrations.CreateModel(
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from oauth2_provider.settings import oauth2_settings
5+
from django.db import models, migrations
6+
import oauth2_provider.validators
7+
import oauth2_provider.generators
8+
from django.conf import settings
9+
10+
11+
class Migration(migrations.Migration):
12+
13+
dependencies = [
14+
('oauth2_provider', '0001_initial'),
15+
]
16+
17+
operations = [
18+
migrations.AddField(
19+
model_name='Application',
20+
name='skip_authorization',
21+
field=models.BooleanField(default=False),
22+
preserve_default=True,
23+
),
24+
migrations.AlterField(
25+
model_name='Application',
26+
name='user',
27+
field=models.ForeignKey(related_name='oauth2_provider_application', to=settings.AUTH_USER_MODEL),
28+
preserve_default=True,
29+
),
30+
migrations.AlterField(
31+
model_name='AccessToken',
32+
name='user',
33+
field=models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True),
34+
preserve_default=True,
35+
),
36+
]

0 commit comments

Comments
 (0)