sonar issues fixed

This commit is contained in:
jain
2023-07-17 11:58:04 +05:30
parent 32e52e17f4
commit cfc36735d6
10 changed files with 190 additions and 71 deletions

View File

@ -4,14 +4,20 @@ from django.conf import settings
"""Third party Django app"""
from templated_email import send_templated_mail
# junior notification
# email for sending email
# when guardian create junior profile
# guardian get email when junior send
# request for approving the profile and
# being part of the zod bank and access the platform
# define junior notification email
# junior approval email
def junior_notification_email(recipient_email, full_name, email, password):
"""Notification email"""
from_email = settings.EMAIL_FROM_ADDRESS
"""recipient email"""
# recipient email"""
recipient_list = [recipient_email]
"""use send template mail for sending email"""
# use send template mail for sending email"""
send_templated_mail(
template_name='junior_notification_email.email',
from_email=from_email,
@ -29,7 +35,7 @@ def junior_approval_mail(guardian, full_name):
"""junior approval mail"""
from_email = settings.EMAIL_FROM_ADDRESS
recipient_list = [guardian]
"""use send tempolate mail for sending email"""
# use send template mail for sending email"""
send_templated_mail(
template_name='junior_approval_mail.email',
from_email=from_email,