Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace django-jsonfield with jsonfield (last stable groks Django 2). #54

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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