Fix discount view and shirt ordering
This commit is contained in:
parent
52c090cdff
commit
357fe894dd
1 changed files with 2 additions and 2 deletions
4
vendor/registrasion/registrasion/views.py
vendored
4
vendor/registrasion/registrasion/views.py
vendored
|
@ -291,7 +291,7 @@ def _guided_registration_products(request, mode):
|
||||||
seen_categories = []
|
seen_categories = []
|
||||||
|
|
||||||
with BatchController.batch(request.user):
|
with BatchController.batch(request.user):
|
||||||
available_products = set(ProductController.available_products(
|
available_products = list(ProductController.available_products(
|
||||||
request.user,
|
request.user,
|
||||||
products=all_products,
|
products=all_products,
|
||||||
))
|
))
|
||||||
|
@ -1012,7 +1012,7 @@ def amend_registration(request, user_id):
|
||||||
except ValidationError as ve:
|
except ValidationError as ve:
|
||||||
voucher_form.add_error(None, ve)
|
voucher_form.add_error(None, ve)
|
||||||
|
|
||||||
|
|
||||||
items = commerce.ProductItem.objects.filter(
|
items = commerce.ProductItem.objects.filter(
|
||||||
cart=current_cart.cart,
|
cart=current_cart.cart,
|
||||||
).select_related("product")
|
).select_related("product")
|
||||||
|
|
Loading…
Reference in a new issue