Skip to content

Commit 302da0d

Browse files
soerfacen2ygk
authored andcommitted
Add swappable dependency to REFRESH_TOKEN_MODEL
1 parent 975a6ea commit 302da0d

File tree

2 files changed

+4
-26
lines changed

2 files changed

+4
-26
lines changed

oauth2_provider/migrations/0011_refreshtoken_token_family.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Generated by Django 5.2 on 2024-08-09 16:40
22

33
from django.db import migrations, models
4-
4+
from oauth2_provider.settings import oauth2_settings
55

66
class Migration(migrations.Migration):
77

88
dependencies = [
99
('oauth2_provider', '0010_application_allowed_origins'),
10+
migrations.swappable_dependency(oauth2_settings.REFRESH_TOKEN_MODEL)
1011
]
1112

1213
operations = [
Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# Generated by Django 5.2 on 2024-08-09 16:40
22

33
from django.db import migrations, models
4+
from oauth2_provider.settings import oauth2_settings
45

56

67
class Migration(migrations.Migration):
78

89
dependencies = [
910
('tests', '0005_basetestapplication_allowed_origins_and_more'),
11+
migrations.swappable_dependency(oauth2_settings.REFRESH_TOKEN_MODEL)
1012
]
1113

1214
operations = [
@@ -15,29 +17,4 @@ class Migration(migrations.Migration):
1517
name='token_family',
1618
field=models.UUIDField(blank=True, editable=False, null=True),
1719
),
18-
migrations.AlterField(
19-
model_name='basetestapplication',
20-
name='allowed_origins',
21-
field=models.TextField(blank=True, default='', help_text='Allowed origins list to enable CORS, space separated'),
22-
),
23-
migrations.AlterField(
24-
model_name='basetestapplication',
25-
name='post_logout_redirect_uris',
26-
field=models.TextField(blank=True, default='', help_text='Allowed Post Logout URIs list, space separated'),
27-
),
28-
migrations.AlterField(
29-
model_name='sampleaccesstoken',
30-
name='token',
31-
field=models.CharField(db_index=True, max_length=255, unique=True),
32-
),
33-
migrations.AlterField(
34-
model_name='sampleapplication',
35-
name='allowed_origins',
36-
field=models.TextField(blank=True, default='', help_text='Allowed origins list to enable CORS, space separated'),
37-
),
38-
migrations.AlterField(
39-
model_name='sampleapplication',
40-
name='post_logout_redirect_uris',
41-
field=models.TextField(blank=True, default='', help_text='Allowed Post Logout URIs list, space separated'),
42-
),
4320
]

0 commit comments

Comments
 (0)