Clarify cart order (#2844)

This commit is contained in:
Raphael Michel
2022-10-10 12:59:49 +02:00
committed by GitHub
parent 38969747f4
commit 9d1cfd1eb6
5 changed files with 47 additions and 63 deletions

View File

@@ -46,7 +46,7 @@ class QuestionsViewMixin(BaseQuestionsViewMixin):
@cached_property
def _positions_for_questions(self):
cart = get_cart(self.request)
return sorted(list(cart), key=self._keyfunc)
return sorted(list(cart), key=lambda cp: cp.sort_key)
def question_form_kwargs(self, cr):
d = {