Fix problem with modifying orders

This commit is contained in:
Raphael Michel
2016-11-08 18:31:24 +01:00
parent 573603f420
commit b30a3b5bee
2 changed files with 8 additions and 1 deletions

View File

@@ -363,6 +363,9 @@ class OrderInvoiceCreate(EventViewMixin, OrderDetailMixin, View):
class OrderModify(EventViewMixin, OrderDetailMixin, QuestionsViewMixin, TemplateView):
template_name = "pretixpresale/event/order_modify.html"
def _positions_for_questions(self):
return self.positions
@cached_property
def positions(self):
return list(self.order.positions.order_by(