Order search: Fix missing field in only() call

This commit is contained in:
Raphael Michel
2022-12-14 18:19:44 +01:00
parent 857377d16c
commit efa9f6dfe5

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'
'datetime', 'total', 'status', 'require_approval', 'testmode', 'custom_followup_at',
).prefetch_related(
'event', 'event__organizer'
).select_related('invoice_address')