# 63 Mail background sending
* moves mail sending to background using celery
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user