Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(2)  |  Import(1)

src/o/s/oscar-sagepay-0.1/sagepay/forms.py   oscar-sagepay(Download)
SAVE_CARD = getattr(settings, 'SAGEPAY_SAVE_CARD', False)
 
from oscar.apps.payment.forms import AbstractAddressForm
 
 
Country = get_model('address', 'Country')
BillingAddress = get_model('order', 'BillingAddress')
 
 
class BillingAddressForm(AbstractAddressForm):
class ShippingAddressForm(AbstractAddressForm):
 
    def __init__(self, *args, **kwargs):
        super(ShippingAddressForm,self ).__init__(*args, **kwargs)
        # sage requires the city in the shipping address