mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Fix AttributeError in orders API when questions are in use
This commit is contained in:
@@ -50,7 +50,7 @@ class OrderViewSet(viewsets.ReadOnlyModelViewSet):
|
||||
def get_queryset(self):
|
||||
return self.request.event.orders.prefetch_related(
|
||||
'positions', 'positions__checkins', 'positions__item', 'positions__answers', 'positions__answers__options',
|
||||
'positions__answers__questions', 'fees'
|
||||
'positions__answers__question', 'fees'
|
||||
).select_related(
|
||||
'invoice_address'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user