Skip to content

Commit 641ab0b

Browse files
akanstantsinaudopry
authored andcommitted
Added default value for allowed_origins
1 parent aa33708 commit 641ab0b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

oauth2_provider/migrations/0010_application_allowed_origins.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class Migration(migrations.Migration):
1313
migrations.AddField(
1414
model_name="application",
1515
name="allowed_origins",
16-
field=models.TextField(blank=True, help_text="Allowed origins list to enable CORS, space separated"),
16+
field=models.TextField(
17+
blank=True,
18+
help_text="Allowed origins list to enable CORS, space separated",
19+
default="",
20+
),
1721
),
1822
]

oauth2_provider/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ class AbstractApplication(models.Model):
135135
allowed_origins = models.TextField(
136136
blank=True,
137137
help_text=_("Allowed origins list to enable CORS, space separated"),
138+
default="",
138139
)
139140

140141
class Meta:

0 commit comments

Comments
 (0)