force update and mail by celery task

This commit is contained in:
jain
2023-08-22 13:46:37 +05:30
parent 9765c90b9b
commit f8e529600b
8 changed files with 68 additions and 9 deletions

View File

@ -14,6 +14,8 @@ from django.db.models import F
# being part of the zod bank and access the platform
# define junior notification email
# junior approval email
from celery import shared_task
@shared_task()
def junior_notification_email(recipient_email, full_name, email, password):
"""Notification email"""
from_email = settings.EMAIL_FROM_ADDRESS
@ -32,7 +34,7 @@ def junior_notification_email(recipient_email, full_name, email, password):
}
)
return full_name
@shared_task()
def junior_approval_mail(guardian, full_name):
"""junior approval mail"""
from_email = settings.EMAIL_FROM_ADDRESS