* fixes bug where background mail delivery did not start
This commit is contained in:
mpeltriaux 2022-01-14 14:19:17 +01:00
parent 1fc0fbbf0a
commit d0640a4098

View File

@ -229,7 +229,7 @@ class RecordableObjectMixin(models.Model):
shared_users = self.users.all().values_list("id", flat=True)
for user_id in shared_users:
celery_send_mail_shared_data_unrecorded(self.identifier, user_id)
celery_send_mail_shared_data_unrecorded.delay(self.identifier, user_id)
return action
@ -251,7 +251,7 @@ class RecordableObjectMixin(models.Model):
shared_users = self.users.all().values_list("id", flat=True)
for user_id in shared_users:
celery_send_mail_shared_data_recorded(self.identifier, user_id)
celery_send_mail_shared_data_recorded.delay(self.identifier, user_id)
return action