66
77from local_units .bulk_upload import BaseBulkUploadLocalUnit , BulkUploadHealthData
88from local_units .models import LocalUnit , LocalUnitBulkUpload , LocalUnitChangeRequest
9- from notifications .notification import send_notification
109
1110from .utils import (
1211 get_email_context ,
1514 get_local_unit_region_validators ,
1615)
1716
17+ # from notifications.notification import send_notification
18+
19+
1820User = get_user_model ()
1921
2022logger = logging .getLogger (__name__ )
@@ -51,7 +53,7 @@ def send_local_unit_email(local_unit_id: int, new: bool = True):
5153 email_context ["validator_email" ] = user .email
5254 email_context ["full_name" ] = user .get_full_name ()
5355 email_body = render_to_string ("email/local_units/local_unit.html" , email_context )
54- send_notification (email_subject , user .email , email_body , email_type )
56+ print (email_subject , user .email , email_body , email_type ) # send_notification
5557
5658
5759@shared_task
@@ -75,7 +77,7 @@ def send_validate_success_email(local_unit_id: int, message: str = ""):
7577 email_subject = "Your Local Unit Addition Request: Approved"
7678 email_body = render_to_string ("email/local_units/local_unit.html" , email_context )
7779 email_type = f"{ message } Local Unit"
78- send_notification (email_subject , user .email , email_body , email_type )
80+ print (email_subject , user .email , email_body , email_type ) # send_notification
7981 return email_context
8082
8183
@@ -102,7 +104,7 @@ def send_revert_email(local_unit_id: int, change_request_id: int):
102104 email_body = render_to_string ("email/local_units/local_unit.html" , email_context )
103105 email_type = "Revert Local Unit"
104106
105- send_notification (email_subject , user .email , email_body , email_type )
107+ print (email_subject , user .email , email_body , email_type ) # send_notification
106108 return email_context
107109
108110
@@ -129,7 +131,7 @@ def send_deprecate_email(local_unit_id: int):
129131 email_subject = "Your Local Unit Addition Request: Deprecated"
130132 email_body = render_to_string ("email/local_units/local_unit.html" , email_context )
131133 email_type = "Deprecate Local Unit"
132- send_notification (email_subject , user .email , email_body , email_type )
134+ print (email_subject , user .email , email_body , email_type ) # send_notification
133135 return email_context
134136
135137
0 commit comments