Using ugettext_lazy #41

Merged
merged 1 commit into from May 11, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Split
View
@@ -5,7 +5,7 @@
from django.contrib.contenttypes import generic
from django.core.files.storage import get_storage_class
-from django.utils.translation import ugettext as _
+from django.utils.translation import ugettext_lazy as _
from .settings import (RELATION_MODELS, RELATIONS, THUMBNAIL_UPLOAD_PATH,
THUMBNAIL_STORAGE)
View
@@ -5,7 +5,7 @@
from django.http import HttpResponse, Http404
from django.views.decorators.cache import cache_page
from django.template.loader import select_template
-from django.utils.translation import ugettext as _
+from django.utils.translation import ugettext_lazy as _
from .models import Category
from .settings import CACHE_VIEW_LENGTH
@@ -146,4 +146,4 @@ def get_template_names(self):
self.template_name_suffix)
)
names.extend(super(CategoryRelatedList, self).get_template_names())
- return names
+ return names