You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am implementing a Notifications feature and I'd like to connect the notification with the email sent, for that I included something like the following to my Notification model.
But that is not optimal, is there a way to get the uuid or model instance for example when the email is sent? or how should I go about doing this? I send the email this way:
email_builder = template_mail.MagicMailBuilder()
context = {
...
}
email = email_builder.notification(self.recipient, context)
email.send() # <---------- it would be cool to have something like "djmail_message = email.send()"
The text was updated successfully, but these errors were encountered:
I am implementing a Notifications feature and I'd like to connect the notification with the email sent, for that I included something like the following to my Notification model.
But I don't know how to later match this, the only thing that I was able to come up with was:
But that is not optimal, is there a way to get the uuid or model instance for example when the email is sent? or how should I go about doing this? I send the email this way:
The text was updated successfully, but these errors were encountered: