daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #add item to shopping cart. Not yet tested
  2. def add_to_cart(object):
  3.   cart = []
  4.   object = Object.objects.all()
  5.   for obj in object:
  6.     if obj in cart:
  7.       print("item already in Cart")
  8.       else:
  9.         cart.push(obj)
  10.         print("item added to cart")
  11.         print(cart)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top