Skip to content

Commit

Permalink
Fix attendee email filtering
Browse files Browse the repository at this point in the history
Commit afe2037 was supposed to remove individual-attendee emails, but
instead removed regclasses-emails.
  • Loading branch information
mhagander committed Nov 19, 2024
1 parent 232b7a5 commit 3b5593f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgresqleu/confreg/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)""",
])

Expand Down

0 comments on commit 3b5593f

Please sign in to comment.