Did I find the right examples for you? yes no

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

src/d/j/django-lfs-0.7.7/lfs/checkout/views.py   django-lfs(Download)
from lfs.customer.models import BankAccount
from lfs.customer.forms import RegisterForm
from lfs.customer.views import address_inline, save_address
from lfs.payment.models import PaymentMethod
from lfs.payment.settings import PAYPAL
 
            # Create or update invoice address
            valid_invoice_address = save_address(request, customer, INVOICE_PREFIX)
            if valid_invoice_address == False:
                form._errors.setdefault(NON_FIELD_ERRORS, ErrorList([_(u"Invalid invoice address")]))
                    customer.selected_shipping_address.company_name = request.POST.get("shipping_company_name")
 
                    valid_shipping_address = save_address(request, customer, SHIPPING_PREFIX)
 
                if valid_shipping_address == False: