mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
16 lines
476 B
Python
16 lines
476 B
Python
from django.utils.functional import cached_property
|
|
|
|
from pretix.base.views.mixins import BaseQuestionsViewMixin
|
|
from pretix.presale.forms.checkout import QuestionsForm
|
|
from pretix.presale.views import get_cart
|
|
|
|
|
|
class QuestionsViewMixin(BaseQuestionsViewMixin):
|
|
form_class = QuestionsForm
|
|
only_user_visible = True
|
|
|
|
@cached_property
|
|
def _positions_for_questions(self):
|
|
cart = get_cart(self.request)
|
|
return sorted(list(cart), key=self._keyfunc)
|