Skip to content

Commit 1eca949

Browse files
authored
Add default value for Application.post_logout_redirect_uris (#1319)
1 parent 6bca431 commit 1eca949

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

oauth2_provider/migrations/0007_application_post_logout_redirect_uris.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ class Migration(migrations.Migration):
1313
migrations.AddField(
1414
model_name="application",
1515
name="post_logout_redirect_uris",
16-
field=models.TextField(blank=True, help_text="Allowed Post Logout URIs list, space separated"),
16+
field=models.TextField(blank=True, help_text="Allowed Post Logout URIs list, space separated", default=""),
1717
),
1818
]

oauth2_provider/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class AbstractApplication(models.Model):
114114
post_logout_redirect_uris = models.TextField(
115115
blank=True,
116116
help_text=_("Allowed Post Logout URIs list, space separated"),
117+
default="",
117118
)
118119
client_type = models.CharField(max_length=32, choices=CLIENT_TYPES)
119120
authorization_grant_type = models.CharField(max_length=32, choices=GRANT_TYPES)

0 commit comments

Comments
 (0)