def send_confirmation_email_to_subscriber(subscriber_id): # import it here to prevent a cyclic import error from mailinglist.models import Subscriber ''' Task function queries Subscriber model for a given subscriber_id and creates a task to to send a confirmation email to a subscriber using send_confirmation_email helper function. Args: subscriber_id - uuid ''' subscriber = Subscriber.objects.get(id=subscriber_id) emails.send_confirmation_email(subscriber)
def send_confirmation_email_to_subscriber(subscriber_id): from mailinglist.models import Subscriber subscriber = Subscriber.objects.get(id=subscriber_id) emails.send_confirmation_email(subscriber)