Fix incomplete only() call

This commit is contained in:
Raphael Michel
2023-11-13 12:31:32 +01:00
parent 47c281aaa6
commit c21083bf80

View File

@@ -1380,7 +1380,9 @@ def send_download_reminders(sender, **kwargs):
download_reminder_sent=False,
datetime__lte=now() - timedelta(hours=2),
first_date__gte=today,
).only('pk', 'event_id', 'sales_channel').order_by('event_id')
).only(
'pk', 'event_id', 'sales_channel', 'datetime',
).order_by('event_id')
event_id = None
days = None
event = None