Skip to content

Commit

Permalink
Add default="" for Account.display_name, support_email, support_phone
Browse files Browse the repository at this point in the history
References dj-stripe#713
  • Loading branch information
jleclanche committed Jul 28, 2018
1 parent 3ad9784 commit 0ee3239
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
15 changes: 15 additions & 0 deletions djstripe/migrations/0002_auto_20180627_1121.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ class Migration(migrations.Migration):
name="business_name",
field=models.CharField(help_text="The publicly visible name of the business", max_length=255, null=True, blank=True),
),
migrations.AlterField(
model_name="account",
name="display_name",
field=models.CharField(blank=True, default="", help_text="The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts.", max_length=255),
),
migrations.AlterField(
model_name="account",
name="support_email",
field=models.CharField(blank=True, default="", help_text="A publicly shareable support email address for the business", max_length=255),
),
migrations.AlterField(
model_name="account",
name="support_phone",
field=models.CharField(blank=True, default="", help_text="A publicly shareable support phone number for the business", max_length=255),
),
migrations.AlterField(
model_name="account",
name="support_url",
Expand Down
7 changes: 5 additions & 2 deletions djstripe/models/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class Account(StripeModel):
)
display_name = models.CharField(
max_length=255,
default="", blank=True,
help_text=(
"The display name for this account. "
"This is used on the Stripe Dashboard to differentiate between accounts."
Expand Down Expand Up @@ -116,11 +117,13 @@ class Account(StripeModel):
)
support_email = models.CharField(
max_length=255,
help_text=("A publicly shareable support email address for the business"),
default="", blank=True,
help_text="A publicly shareable support email address for the business",
)
support_phone = models.CharField(
max_length=255,
help_text=("A publicly shareable support phone number for the business"),
default="", blank=True,
help_text="A publicly shareable support phone number for the business",
)
support_url = models.CharField(
max_length=200,
Expand Down

0 comments on commit 0ee3239

Please sign in to comment.