from celery.task import task
from utils import send_templated_email

@task
def send_templated_email_async(to, subject, body_template, body_dict, 
                         from_email=None, ct="html", fail_silently=False):
    return send_templated_email(to,subject, body_template, body_dict, 
                         from_email=None, ct="html", fail_silently=False)

from celery.task import task
from utils import send_templated_email

@task
def send_templated_email_async(to, subject, body_template, body_dict, 
                         from_email=None, ct="html", fail_silently=False, check_user_preference=True):
    return send_templated_email(to,subject, body_template, body_dict, 
                         from_email=None, ct="html", fail_silently=False)

Allow check_user_preferences for email to be passed from async templated email send
Allow check_user_preferences for email to be passed from async templated email send

  from celery.task import task
  from utils import send_templated_email
  
  @task
  def send_templated_email_async(to, subject, body_template, body_dict, 
-                          from_email=None, ct="html", fail_silently=False):
+                          from_email=None, ct="html", fail_silently=False, check_user_preference=True):
      return send_templated_email(to,subject, body_template, body_dict, 
                           from_email=None, ct="html", fail_silently=False)
  
Allow check_user_preferences for email to be passed from async templated email send
## Code Before:
from celery.task import task
from utils import send_templated_email

@task
def send_templated_email_async(to, subject, body_template, body_dict, 
                         from_email=None, ct="html", fail_silently=False):
    return send_templated_email(to,subject, body_template, body_dict, 
                         from_email=None, ct="html", fail_silently=False)

## Instruction:
Allow check_user_preferences for email to be passed from async templated email send
## Code After:
from celery.task import task
from utils import send_templated_email

@task
def send_templated_email_async(to, subject, body_template, body_dict, 
                         from_email=None, ct="html", fail_silently=False, check_user_preference=True):
    return send_templated_email(to,subject, body_template, body_dict, 
                         from_email=None, ct="html", fail_silently=False)
