Did I find the right examples for you? yes no

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

src/d/j/django-lfs-0.7.7/lfs/cart/views.py   django-lfs(Download)
    # Update the customer's shipping method (if appropriate)
    customer = customer_utils.get_or_create_customer(request)
    shipping_utils.update_to_valid_shipping_method(request, customer, save=True)
 
    # Update the customer's payment method (if appropriate)

src/d/j/django-lfs-HEAD/lfs/cart/views.py   django-lfs(Download)
    # Update the customer's shipping method (if appropriate)
    customer = customer_utils.get_or_create_customer(request)
    shipping_utils.update_to_valid_shipping_method(request, customer, save=True)
 
    # Update the customer's payment method (if appropriate)

src/l/f/lfs-HEAD/cart/views.py   lfs(Download)
    # Update the customer's shipping method (if appropriate)
    customer = customer_utils.get_or_create_customer(request)
    shipping_utils.update_to_valid_shipping_method(request, customer, save=True)
 
    # Update the customer's shipping method (if appropriate)

src/d/j/django-lfs-0.7.7/lfs/checkout/views.py   django-lfs(Download)
        customer.save()
 
        lfs.shipping.utils.update_to_valid_shipping_method(request, customer)
        lfs.payment.utils.update_to_valid_payment_method(request, customer)
        customer.save()
    customer.save()
 
    lfs.shipping.utils.update_to_valid_shipping_method(request, customer)
    lfs.payment.utils.update_to_valid_payment_method(request, customer)
    customer.save()

src/l/f/lfs-HEAD/checkout/views.py   lfs(Download)
    customer.save()
 
    lfs.shipping.utils.update_to_valid_shipping_method(request, customer)
    lfs.payment.utils.update_to_valid_payment_method(request, customer)
    customer.save()
    customer.save()
 
    lfs.shipping.utils.update_to_valid_shipping_method(request, customer)
    lfs.payment.utils.update_to_valid_payment_method(request, customer)
    customer.save()

src/d/j/django-lfs-HEAD/lfs/checkout/views.py   django-lfs(Download)
            customer.sync_selected_to_default_shipping_address()
 
            lfs.shipping.utils.update_to_valid_shipping_method(request, customer)
            lfs.payment.utils.update_to_valid_payment_method(request, customer)
            customer.save()
    customer.save()
 
    lfs.shipping.utils.update_to_valid_shipping_method(request, customer)
    lfs.payment.utils.update_to_valid_payment_method(request, customer)
    customer.save()