Skip to content

Commit

Permalink
Added default value for allowed_origins
Browse files Browse the repository at this point in the history
  • Loading branch information
akanstantsinau authored and dopry committed Oct 17, 2023
1 parent aa33708 commit 641ab0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="application",
name="allowed_origins",
field=models.TextField(blank=True, help_text="Allowed origins list to enable CORS, space separated"),
field=models.TextField(
blank=True,
help_text="Allowed origins list to enable CORS, space separated",
default="",
),
),
]
1 change: 1 addition & 0 deletions oauth2_provider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class AbstractApplication(models.Model):
allowed_origins = models.TextField(
blank=True,
help_text=_("Allowed origins list to enable CORS, space separated"),
default="",
)

class Meta:
Expand Down

0 comments on commit 641ab0b

Please sign in to comment.