Did I find the right examples for you? yes no

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

src/d/j/django-lfs-HEAD/lfs/customer/utils.py   django-lfs(Download)
            return None
        except MultipleObjectsReturned:
            customers = Customer.objects.filter(session=session_key, user__isnull=True)
            customer = customers[0]
            customers.exclude(pk=customer.pk).delete()

src/d/j/django-lfs-HEAD/lfs/customer/management/commands/cleanup_customers.py   django-lfs(Download)
        from lfs.cart.models import Cart
        cnt = 0
        for customer in Customer.objects.filter(user__isnull=True):
            has_cart = Cart.objects.filter(session=customer.session).exists()
            has_orders = Order.objects.filter(session=customer.session).exists()

src/d/j/django-lfs-HEAD/lfs/manage/views/payment.py   django-lfs(Download)
        pass
    else:
        for customer in Customer.objects.filter(selected_payment_method=payment_method_id):
            customer.selected_payment_method = payment_utils.get_default_payment_method(request)
            customer.save()

src/d/j/django-lfs-HEAD/lfs/manage/shipping_methods/views.py   django-lfs(Download)
        pass
    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-0.7.7/lfs/manage/views/payment.py   django-lfs(Download)
        pass
    else:
        for customer in Customer.objects.filter(selected_payment_method=payment_method_id):
            customer.selected_payment_method = payment_utils.get_default_payment_method(request)
            customer.save()

src/d/j/django-lfs-0.7.7/lfs/manage/shipping_methods/views.py   django-lfs(Download)
        pass
    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)
        pass
    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/payment.py   lfs(Download)
        pass
    else:
        for customer in Customer.objects.filter(selected_payment_method=payment_method_id):
            customer.selected_payment_method = payment_utils.get_default_payment_method(request)
            customer.save()