From 8e558842fff1ba60fb974941c8b152c57b6d8ca9 Mon Sep 17 00:00:00 2001 From: Michal Proszek Date: Fri, 1 Sep 2017 16:41:38 +0200 Subject: [PATCH] Correct typo --- aa_stripe/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aa_stripe/models.py b/aa_stripe/models.py index 06e4dcc..96fb74b 100644 --- a/aa_stripe/models.py +++ b/aa_stripe/models.py @@ -153,7 +153,7 @@ def update_from_stripe_data(self, stripe_coupon, exclude_fields=None, commit=Tru """ Update StripeCoupon object with data from stripe.Coupon without calling stripe.Coupon.retrieve. To only update the object, set the commit param to False. - Returns the number of rows altered, or None if commit is False. + Returns the number of rows altered or None if commit is False. """ fields_to_update = self.STRIPE_FIELDS - set(exclude_fields or []) update_data = {key: stripe_coupon[key] for key in fields_to_update} @@ -445,7 +445,7 @@ def _parse_coupon_notification(self, action): try: StripeCoupon(coupon_id=coupon_id).save(force_retrieve=True) except stripe.error.InvalidRequestError: - # do not fail in case the coupon has already been removed from Stripe, before we received the webhook + # do not fail in case the coupon has already been removed from Stripe before we received the webhook pass elif action == "updated": StripeCoupon.objects.filter(coupon_id=coupon_id, is_deleted=False).update(