Skip to content

Commit

Permalink
Changed ugettext to ugettext_lazy (Fixed tehpug#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
k1-hedayati committed Jun 26, 2014
1 parent 20e61ce commit 9970a9f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wsgi/faq/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _


class FAQ(models.Model):
Expand Down
3 changes: 2 additions & 1 deletion wsgi/news/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# -----------------------------------------------------------------------------
from django.db import models
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from django.conf import settings

Expand All @@ -29,6 +29,7 @@ class News(models.Model):
"""
user = models.ForeignKey(User, editable=False,
verbose_name=_("User"))

title = models.CharField(max_length=60,
verbose_name=_("Title"))
content = models.TextField(verbose_name=_("News content"))
Expand Down
2 changes: 1 addition & 1 deletion wsgi/page/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from django.conf import settings


Expand Down
2 changes: 1 addition & 1 deletion wsgi/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# -----------------------------------------------------------------------------

from django.db import models
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _


class Project(models.Model):
Expand Down

0 comments on commit 9970a9f

Please sign in to comment.