Order search: Fix missing field in only() call

This commit is contained in:
Raphael Michel
2022-12-15 14:45:35 +01:00
parent d46989473b
commit 0cd8bbf9a9

View File

@@ -134,7 +134,7 @@ class OrderSearch(PaginationMixin, ListView):
"""
return qs.only(
'id', 'invoice_address__name_cached', 'invoice_address__name_parts', 'code', 'event', 'email',
'datetime', 'total', 'status', 'require_approval', 'testmode', 'custom_followup_at',
'datetime', 'total', 'status', 'require_approval', 'testmode', 'custom_followup_at', 'expires'
).prefetch_related(
'event', 'event__organizer'
).select_related('invoice_address')