0002-lingo-do-not-pass-lazy-string-to-messages-32239.patch
combo/apps/lingo/models.py | ||
---|---|---|
30 | 30 |
from django.conf import settings |
31 | 31 |
from django.db import models |
32 | 32 |
from django.forms import models as model_forms, Select |
33 |
from django.utils.translation import ugettext_lazy as _ |
|
33 |
from django.utils.translation import ugettext_lazy as _, ugettext
|
|
34 | 34 |
from django.utils import timezone, dateparse |
35 | 35 |
from django.core.mail import EmailMultiAlternatives |
36 | 36 |
from django.core.urlresolvers import reverse |
... | ... | |
135 | 135 |
def get_text_on_success(self): |
136 | 136 |
if self.text_on_success: |
137 | 137 |
return self.text_on_success |
138 |
return _('Your payment has been succesfully registered.')
|
|
138 |
return ugettext('Your payment has been succesfully registered.')
|
|
139 | 139 | |
140 | 140 |
def get_invoices(self, user, history=False): |
141 | 141 |
if not self.is_remote(): |
142 |
- |