Skip to content

Commit 264d307

Browse files
committed
Fixed bug in migration
1 parent 5764593 commit 264d307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2_provider/migrations/0002_auto_20150522_1231.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from __future__ import unicode_literals
33

44
from django.db import models, migrations
5-
from django.conf import settings
5+
from oauth2_provider.settings import oauth2_settings
66

77

88
class Migration(migrations.Migration):
@@ -15,6 +15,6 @@ class Migration(migrations.Migration):
1515
migrations.AlterField(
1616
model_name='refreshtoken',
1717
name='access_token',
18-
field=models.OneToOneField(to=settings.OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL, related_name='refresh_token'),
18+
field=models.OneToOneField(to=oauth2_settings.ACCESS_TOKEN_MODEL, related_name='refresh_token'),
1919
),
2020
]

0 commit comments

Comments
 (0)