# 63 Mail background sending

* moves mail sending to background using celery
This commit is contained in:
2022-01-12 14:27:39 +01:00
parent 3531997080
commit 82778d1fec
5 changed files with 18 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ from konova.utils.mailer import Mailer
class User(AbstractUser):
notifications = models.ManyToManyField("user.UserNotification", related_name="+", blank=True)
def send_mail_shared_access_removed(self, obj):
def send_mail_shared_access_removed(self, obj_identifier):
""" Sends a mail to the user in case of removed shared access
Args:
@@ -25,4 +25,4 @@ class User(AbstractUser):
"""
mailer = Mailer()
mailer.send_mail_shared_access_removed(obj, self)
mailer.send_mail_shared_access_removed(obj_identifier, self)