Commits

Anonymous committed 5faa994

Don't ignore values passed in 'remove' list for cart update

Comments (0)

Files changed (1)

catalogue/views.py

     '''Update quantities in cart'''
     # List of item pkeys to remove
     remove_list = set(int(x) for x in request.POST.getlist('remove'))
-    remove = set()
+    remove = set(remove_list)
     for item in request.cart:
         if item.item.pk in remove:
             remove.add(item)