From 28682c7c338b5fae21f06eec884385cbfb561388 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 27 Oct 2017 00:00:22 +0200 Subject: [PATCH] Defined order of positions in addons form --- src/pretix/presale/checkoutflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/presale/checkoutflow.py b/src/pretix/presale/checkoutflow.py index 803dc13e95..ada4464c6f 100644 --- a/src/pretix/presale/checkoutflow.py +++ b/src/pretix/presale/checkoutflow.py @@ -188,7 +188,7 @@ class AddOnsStep(CartMixin, AsyncAction, TemplateFlowStep): item_cache = {} for cartpos in get_cart(self.request).filter(addon_to__isnull=True).prefetch_related( 'item__addons', 'item__addons__addon_category', 'addons', 'addons__variation', - ): + ).order_by('pk'): current_addon_products = { a.item_id: a.variation_id for a in cartpos.addons.all() }