Skip to content

Commit

Permalink
Make Card.country nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
kavdev authored and jleclanche committed Jan 9, 2018
1 parent 41c5692 commit 892c210
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion djstripe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,11 @@ class Card(StripeObject):
help_text="If ``address_zip`` was provided, results of the check."
)
brand = StripeCharField(max_length=16, choices=enums.CardBrand.choices, help_text="Card brand.")
country = StripeCharField(max_length=2, help_text="Two-letter ISO code representing the country of the card.")
country = StripeCharField(
null=True,
max_length=2,
help_text="Two-letter ISO code representing the country of the card."
)
cvc_check = StripeCharField(
null=True,
max_length=11,
Expand Down

0 comments on commit 892c210

Please sign in to comment.