Did I find the right examples for you? yes no

All Samples(23)  |  Call(2)  |  Derive(0)  |  Import(21)

src/l/f/lfs-HEAD/cart/views.py   lfs(Download)
from lfs.catalog.settings import PRODUCT_WITH_VARIANTS
from lfs.cart import utils as cart_utils
from lfs.cart.models import CartItem
from lfs.shipping import utils as shipping_utils
from lfs.payment import utils as payment_utils
        cart_item = CartItem.objects.get(cart = cart, product = product)
    except ObjectDoesNotExist:
        cart_item = CartItem(cart=cart, product=product, amount=quantity)
        cart_item.save()
    else:
                cart_item = CartItem.objects.get(cart = cart, product = accessory)
            except ObjectDoesNotExist:
                cart_item = CartItem(cart=cart, product = accessory, amount=quantity)
                cart_item.save()
            else:

src/d/j/django-lfs-0.7.7/lfs/cart/utils.py   django-lfs(Download)
 
# lfs imports
from lfs.cart.models import CartItem
from lfs.cart.models import Cart
from lfs.payment import utils as payment_utils

src/l/f/lfs-HEAD/cart/utils.py   lfs(Download)
 
# lfs imports
from lfs.cart.models import CartItem
from lfs.cart.models import Cart
from lfs.payment import utils as payment_utils

src/d/j/django-lfs-0.7.7/lfs/cart/views.py   django-lfs(Download)
from lfs.catalog.settings import QUANTITY_FIELD_INTEGER
from lfs.cart import utils as cart_utils
from lfs.cart.models import CartItem
from lfs.core.models import Country
from lfs.core.utils import l10n_float

src/d/j/django-lfs-HEAD/lfs/cart/views.py   django-lfs(Download)
from lfs.catalog.models import Property
from lfs.cart import utils as cart_utils
from lfs.cart.models import CartItem
from lfs.core.models import Country
from lfs.core.utils import LazyEncoder

src/l/f/lfs-HEAD/shipping/tests.py   lfs(Download)
from lfs.criteria.settings import GREATER_THAN, LESS_THAN
from lfs.cart import utils as cart_utils
from lfs.cart.models import CartItem
from lfs.caching.listeners import update_cart_cache
from lfs.tests.utils import create_request

src/l/f/lfs-HEAD/order/tests.py   lfs(Download)
from lfs.catalog.models import Product
from lfs.cart.models import Cart
from lfs.cart.models import CartItem
from lfs.cart.views import add_to_cart
from lfs.cart import utils as cart_utils

src/d/j/django-lfs-HEAD/lfs/voucher/tests.py   django-lfs(Download)
import lfs.voucher.utils
from lfs.cart.models import Cart
from lfs.cart.models import CartItem
from lfs.catalog.models import Product
from lfs.tests.utils import RequestFactory

src/d/j/django-lfs-HEAD/lfs/shipping/tests.py   django-lfs(Download)
from lfs.criteria.settings import GREATER_THAN, LESS_THAN
from lfs.cart import utils as cart_utils
from lfs.cart.models import CartItem
from lfs.caching.listeners import update_cart_cache
from lfs.tests.utils import create_request

src/d/j/django-lfs-HEAD/lfs/order/tests.py   django-lfs(Download)
from lfs.catalog.models import Product
from lfs.cart.models import Cart
from lfs.cart.models import CartItem
from lfs.cart.views import add_to_cart
from lfs.cart import utils as cart_utils

  1 | 2 | 3  Next