Did I find the right examples for you? yes no

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)

src/l/f/lfs-HEAD/checkout/views.py   lfs(Download)
            if customer.selected_invoice_address is None:
                invoice_address = Address.objects.create(
                    firstname = form.cleaned_data.get("invoice_firstname"),
                    lastname = form.cleaned_data.get("invoice_lastname"),
                    company_name = form.cleaned_data.get("invoice_company_name"),
                if customer.selected_shipping_address is None:
                    shipping_address = Address.objects.create(
                        firstname = form.cleaned_data.get("shipping_firstname"),
                        lastname = form.cleaned_data.get("shipping_lastname"),
                        company_name = form.cleaned_data.get("shipping_company_name"),
            if customer.selected_invoice_address is None:
                invoice_address = Address.objects.create(
                    firstname = form.data.get("invoice_firstname"),
                    lastname = form.data.get("invoice_lastname"),
                    company_name = form.data.get("invoice_company_name"),
                if customer.selected_shipping_address is None:
                    shipping_address = Address.objects.create(
                        firstname = form.data.get("shipping_firstname"),
                        lastname = form.data.get("shipping_lastname"),
                        company_name = form.data.get("shipping_company_name"),

src/d/j/django-lfs-0.7.7/lfs/customer/views.py   django-lfs(Download)
    if not existing_address:
        # no address exists for customer so create one
        customer_selected_address = Address.objects.create(customer=customer,
                                                           line1=request.POST.get(prefix + "-line1", ""),
                                                           line2=request.POST.get(prefix + "-line2", ""),

src/d/j/django-lfs-0.7.7/lfs/order/tests.py   django-lfs(Download)
 
        address1 = Address.objects.create(
            firstname="John",
            lastname="Doe",
            company_name="Doe Ltd.",
 
        address2 = Address.objects.create(
            firstname="Jane",
            lastname="Doe",
            company_name="Doe Ltd.",

src/d/j/django-lfs-0.7.7/lfs/customer/tests.py   django-lfs(Download)
 
        self.address1 = Address.objects.create(
            firstname="John",
            lastname="Doe",
            company_name="Doe Ltd.",
 
        self.address2 = Address.objects.create(
            firstname="Jane",
            lastname="Doe",
            company_name="Doe Ltd.",

src/l/f/lfs-HEAD/order/tests.py   lfs(Download)
 
        address1 = Address.objects.create(
            firstname = "John",
            lastname = "Doe",
            company_name = "Doe Ltd.",
 
        address2 = Address.objects.create(
            firstname = "Jane",
            lastname = "Doe",
            company_name = "Doe Ltd.",

src/d/j/django-lfs-0.7.7/lfs/customer/utils.py   django-lfs(Download)
        customer.user = request.user
    shop = lfs.core.utils.get_default_shop(request)
    customer.selected_invoice_address = Address.objects.create(customer=customer, country=shop.default_country)
    customer.selected_shipping_address = Address.objects.create(customer=customer, country=shop.default_country)
    customer.save()

src/d/j/django-lfs-0.7.7/lfs/discounts/tests.py   django-lfs(Download)
 
        address1 = Address.objects.create(
            firstname="John",
            lastname="Doe",
            company_name="Doe Ltd.",

src/d/j/django-lfs-0.7.7/lfs/checkout/tests/test_checkout.py   django-lfs(Download)
 
        address1 = Address.objects.create(
            firstname="John",
            lastname="Doe",
            company_name="Doe Ltd.",
 
        address2 = Address.objects.create(
            firstname="Jane",
            lastname="Doe",
            company_name="Doe Ltd.",

src/d/j/django-lfs-0.7.7/lfs/checkout/tests/test_addresses.py   django-lfs(Download)
 
        address1 = Address.objects.create(
            firstname="John",
            lastname="Doe",
            company_name="Doe Ltd.",
 
        address2 = Address.objects.create(
            firstname="Jane",
            lastname="Doe",
            company_name="Doe Ltd.",