diff options
author | Patryk Zawadzki <patrys@room-303.com> | 2014-02-20 13:20:08 +0100 |
---|---|---|
committer | Patryk Zawadzki <patrys@room-303.com> | 2014-02-20 13:20:08 +0100 |
commit | a8112fc3174dee007f5bcda6077684f7ab6f8132 (patch) | |
tree | 271735975702602fe5c2b2f14f35dd1104c304dc /payments/stripe | |
parent | f23e7188dad242c32f276200ac4e9d579c3be501 (diff) | |
download | django-payments-taler-a8112fc3174dee007f5bcda6077684f7ab6f8132.tar.gz django-payments-taler-a8112fc3174dee007f5bcda6077684f7ab6f8132.tar.bz2 django-payments-taler-a8112fc3174dee007f5bcda6077684f7ab6f8132.zip |
Make sure we actually pass tests on Python 3
Diffstat (limited to 'payments/stripe')
-rw-r--r-- | payments/stripe/__init__.py | 2 | ||||
-rw-r--r-- | payments/stripe/forms.py | 7 | ||||
-rw-r--r-- | payments/stripe/widgets.py | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/payments/stripe/__init__.py b/payments/stripe/__init__.py index 1c9bd2c..f79ead2 100644 --- a/payments/stripe/__init__.py +++ b/payments/stripe/__init__.py @@ -1,3 +1,5 @@ +from __future__ import unicode_literals + from django.shortcuts import redirect from .. import BasicProvider, RedirectNeeded diff --git a/payments/stripe/forms.py b/payments/stripe/forms.py index dfeb30b..ac41cd3 100644 --- a/payments/stripe/forms.py +++ b/payments/stripe/forms.py @@ -1,5 +1,6 @@ -from django import forms +from __future__ import unicode_literals +from django import forms import stripe from ..forms import PaymentForm as BasePaymentForm @@ -30,8 +31,8 @@ class PaymentForm(BasePaymentForm): amount=self.payment.total * 100, currency=self.payment.currency, card=data['stripe_token'], - description=u'%s %s' % (self.payment.billing_last_name, - self.payment.billing_first_name) + description='%s %s' % (self.payment.billing_last_name, + self.payment.billing_first_name) ) except stripe.CardError as e: # The card has been declined diff --git a/payments/stripe/widgets.py b/payments/stripe/widgets.py index c283577..8f1139e 100644 --- a/payments/stripe/widgets.py +++ b/payments/stripe/widgets.py @@ -1,3 +1,5 @@ +from __future__ import unicode_literals + from django.forms.widgets import HiddenInput from django.utils.translation import ugettext_lazy as _ |