diff --git a/paperwork/certification_emails.py b/paperwork/certification_emails.py index ee24d8f..a5ade51 100644 --- a/paperwork/certification_emails.py +++ b/paperwork/certification_emails.py @@ -54,7 +54,8 @@ def department_emails(ordered_queryset): ) for department, certifications in certifications_by_department: - yield make_department_email(department, list(certifications)) + if department.shop_lead_flag is not None: + yield make_department_email(department, list(certifications)) def make_member_email(member, certifications):