From 3b5593f9bbdb68d56977a563e3abd45499bfeeee Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 19 Nov 2024 16:05:21 +0100 Subject: [PATCH] Fix attendee email filtering Commit afe20375 was supposed to remove individual-attendee emails, but instead removed regclasses-emails. --- postgresqleu/confreg/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresqleu/confreg/views.py b/postgresqleu/confreg/views.py index 32b8acf4..0099f0c7 100644 --- a/postgresqleu/confreg/views.py +++ b/postgresqleu/confreg/views.py @@ -4374,7 +4374,7 @@ def admin_attendeemail(request, urlname): mails = AttendeeMail.objects.prefetch_related('regclasses', 'registrations', 'pending_regs', 'addopts').filter(conference=conference).extra(where=[ """tovolunteers OR tocheckin OR EXISTS (SELECT 1 FROM confreg_attendeemail_addopts WHERE attendeemail_id=confreg_attendeemail.id) -OR EXISTS (SELECT 1 FROM confreg_attendeemail_registrations WHERE attendeemail_id=confreg_attendeemail.id OFFSET 1) +OR EXISTS (SELECT 1 FROM confreg_attendeemail_regclasses WHERE attendeemail_id=confreg_attendeemail.id OFFSET 1) OR EXISTS (SELECT 1 FROM confreg_attendeemail_pending_regs WHERE attendeemail_id=confreg_attendeemail.id OFFSET 1)""", ])