0001-localize-unsubscription-link-14005.patch
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 | |
... | ... | |
170 | 171 |
subscriptions = self.announce.category.subscription_set.all() |
171 | 172 |
total_sent = 0 |
172 | 173 |
handler = HTML2Text() |
174 |
activate(settings.LANGUAGE_CODE) |
|
173 | 175 |
template = loader.get_template('corbo/announce.html') |
174 | 176 |
message = Message(subject=self.announce.title, mail_from=settings.CORBO_DEFAULT_FROM_EMAIL, |
175 | 177 |
html=template.render(Context({'content': self.announce.text, |
176 |
- |