Skip to content

Commit

Permalink
Replace django-jsonfield with jsonfield (last stable groks Django 2).
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinkaszynski committed Oct 24, 2018
1 parent 885d294 commit 9c5f6f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions aa_stripe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@ class StripeCoupon(StripeBasicModel):
max_redemptions = models.PositiveIntegerField(
blank=True, null=True,
help_text=_("Maximum number of times this coupon can be redeemed, in total, before it is no longer valid."))
metadata = JSONField(help_text=_("Set of key/value pairs that you can attach to an object. It can be useful for "
"storing additional information about the object in a structured format."))
metadata = JSONField(
blank=True, null=False, default={},
help_text=_("Set of key/value pairs that you can attach to an object. It can be useful for "
"storing additional information about the object in a structured format."))
percent_off = models.PositiveIntegerField(
blank=True, null=True,
help_text=_("Percent that will be taken off the subtotal of any invoicesfor this customer for the duration of "
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-base.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django-jsonfield>=1.0.1
jsonfield==2.0.2
stripe>=1.49.0,<2.0.0
djangorestframework>=3.6.0
simplejson>=3.10.0
Expand Down

0 comments on commit 9c5f6f0

Please sign in to comment.