Fix discount view and shirt ordering

This commit is contained in:
Tobias 2018-09-30 18:41:39 +13:00
parent 52c090cdff
commit 357fe894dd

View file

@ -291,7 +291,7 @@ def _guided_registration_products(request, mode):
seen_categories = []
with BatchController.batch(request.user):
available_products = set(ProductController.available_products(
available_products = list(ProductController.available_products(
request.user,
products=all_products,
))
@ -1012,7 +1012,7 @@ def amend_registration(request, user_id):
except ValidationError as ve:
voucher_form.add_error(None, ve)
items = commerce.ProductItem.objects.filter(
cart=current_cart.cart,
).select_related("product")