Révision 20ea746f
Ajouté par Serghei Mihai il y a plus de 7 ans
corbo/models.py | ||
---|---|---|
19 | 19 |
from django.core import signing |
20 | 20 |
from django.template import loader, Context |
21 | 21 |
from django.core.urlresolvers import reverse |
22 |
from django.utils.translation import activate |
|
22 | 23 |
|
23 | 24 |
from ckeditor.fields import RichTextField |
24 | 25 |
|
... | ... | |
138 | 139 |
subscriptions = self.announce.category.subscription_set.all() |
139 | 140 |
total_sent = 0 |
140 | 141 |
handler = HTML2Text() |
142 |
activate(settings.LANGUAGE_CODE) |
|
141 | 143 |
template = loader.get_template('corbo/announce.html') |
142 | 144 |
message = Message(subject=self.announce.title, mail_from=settings.CORBO_DEFAULT_FROM_EMAIL, |
143 | 145 |
html=template.render( |
Formats disponibles : Unified diff
localize unsubscription link (#14005)