In my offers, site users can set email alerts if the offer meets certain requirements (filters specified in the model).
So, when user “A” adds a sentence, the post_save signal is sent to the celery and the user alert filters are checked, and if there are, emails are sent.
The problem is that I have no idea how to safely install content for each sent message. The service is provided in several languages. The user can change the language in his profile (through the User <- Userprofile.language () field) so that each email should have the value UserProfile.language () ...
Tried with translation.activate (userinstance.UserProfile.language), but this does not work as I expect. How do I see translation.activate () activating a translation for the entire stream?
PS: Email content is displayed from the template.
Robert
source share