From 6720c0e993b585573ee4d9efbc32a9a27c219406 Mon Sep 17 00:00:00 2001
From: Raphael Michel
| {% trans "Question" %} | {% trans "Type" %} | +{% trans "Products" %} | {{ q.get_type_display }} | +
+
|
diff --git a/src/pretix/control/views/item.py b/src/pretix/control/views/item.py index 7baab61c8..c3f1169c0 100644 --- a/src/pretix/control/views/item.py +++ b/src/pretix/control/views/item.py @@ -250,7 +250,7 @@ class QuestionList(ListView): template_name = 'pretixcontrol/items/questions.html' def get_queryset(self): - return self.request.event.questions.all() + return self.request.event.questions.prefetch_related('items') def question_move(request, question, up=True): |
|---|