Did I find the right examples for you? yes no

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

src/d/j/django-lfs-0.7.7/lfs/cart/views.py   django-lfs(Download)
    valid_shipping_methods = shipping_utils.get_valid_shipping_methods(request)
    if customer.selected_shipping_method not in valid_shipping_methods:
        customer.selected_shipping_method = shipping_utils.get_default_shipping_method(request)
 
    # Update payment method

src/d/j/django-lfs-HEAD/lfs/cart/views.py   django-lfs(Download)
    valid_shipping_methods = shipping_utils.get_valid_shipping_methods(request)
    if customer.selected_shipping_method not in valid_shipping_methods:
        customer.selected_shipping_method = shipping_utils.get_default_shipping_method(request)
 
    # Update payment method

src/l/f/lfs-HEAD/cart/views.py   lfs(Download)
    valid_shipping_methods = shipping_utils.get_valid_shipping_methods(request)
    if customer.selected_shipping_method not in valid_shipping_methods:
        customer.selected_shipping_method = shipping_utils.get_default_shipping_method(request)
 
    # Update payment method

src/d/j/django-lfs-0.7.7/lfs/manage/shipping_methods/views.py   django-lfs(Download)
    else:
        for customer in Customer.objects.filter(selected_shipping_method=shipping_method_id):
            customer.selected_shipping_method = shipping_utils.get_default_shipping_method(request)
            customer.save()
 

src/d/j/django-lfs-HEAD/lfs/manage/shipping_methods/views.py   django-lfs(Download)
    else:
        for customer in Customer.objects.filter(selected_shipping_method=shipping_method_id):
            customer.selected_shipping_method = shipping_utils.get_default_shipping_method(request)
            customer.save()
 

src/l/f/lfs-HEAD/manage/views/shipping.py   lfs(Download)
    else:
        for customer in Customer.objects.filter(selected_shipping_method=shipping_method_id):
            customer.selected_shipping_method = shipping_utils.get_default_shipping_method(request)
            customer.save()