Skip to content

Commit f4a3445

Browse files
committed
Merge pull request #14 from alesdotio/patch-1
fix for compatibility with develop version of the shop
2 parents 6318fcd + 6b16f65 commit f4a3445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shop_simplevariations/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def post(self, *args, **kwargs):
1717
if not product_quantity:
1818
product_quantity = 1
1919
product = Product.objects.get(pk=product_id)
20-
cart_object = get_or_create_cart(self.request)
20+
cart_object = get_or_create_cart(self.request, save=True)
2121

2222
#now we need to find out which options have been chosen by the user
2323
option_ids = []

0 commit comments

Comments
 (0)