summaryrefslogtreecommitdiff
path: root/payments/stripe/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'payments/stripe/forms.py')
-rw-r--r--payments/stripe/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/payments/stripe/forms.py b/payments/stripe/forms.py
index 0ead8a4..14d631a 100644
--- a/payments/stripe/forms.py
+++ b/payments/stripe/forms.py
@@ -101,11 +101,11 @@ class PaymentForm(StripeFormMixin, CreditCardPaymentFormWithName):
SensitiveSelect(
attrs={'autocomplete': 'cc-exp-month',
'required': 'required'},
- choices=CreditCardExpiryField.EXP_MONTH_CHOICES),
+ choices=CreditCardExpiryField.get_year_choices()),
SensitiveSelect(
attrs={'autocomplete': 'cc-exp-year',
'required': 'required'},
- choices=CreditCardExpiryField.EXP_YEAR_CHOICES)])
+ choices=CreditCardExpiryField.get_year_choices())])
}
for field_name, widget in widget_map.items():
self.fields[field_name].widget = widget