Skip to content
Snippets Groups Projects
Commit 65a740e5 authored by Calen Pennington's avatar Calen Pennington
Browse files

Make SendEmailBaseCommand.send_emails raise NotImplementedError

parent c19a3368
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,9 @@ class SendEmailBaseCommand(PrefixedDebugLoggerMixin, BaseCommand):
override_recipient_email = options.get('override_recipient_email')
self.send_emails(site, current_date, override_recipient_email)
def send_emails(self, *args, **kwargs):
raise NotImplementedError
def enqueue(self, day_offset, site, current_date, override_recipient_email=None):
self.async_send_task.enqueue(
site,
......@@ -44,6 +47,3 @@ class SendEmailBaseCommand(PrefixedDebugLoggerMixin, BaseCommand):
day_offset,
override_recipient_email,
)
def send_emails(self, *args, **kwargs):
pass # define in subclass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment