forms.py 318 Bytes
Newer Older
Andreas Berger's avatar
Andreas Berger committed
1
2
from django import forms

Ola Hermann Opheim's avatar
autopep    
Ola Hermann Opheim committed
3

Andreas Berger's avatar
Andreas Berger committed
4
5
6
7
8
class PaymentForm(forms.Form):
    cardnumber = forms.CharField(max_length=20, label="Card Number")
    expirymonth = forms.CharField(max_length=2, label="Expiry Month")
    expiryyear = forms.CharField(max_length=2, label="Expiry Year")
    cvc = forms.CharField(max_length=4, label="CVC")