Skip to content

Commit fbf24ee

Browse files
committed
use ugettext_lazy
1 parent bab67d2 commit fbf24ee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

keyvaluestore/managers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from django.db import models
22
from django.core.cache import cache
3-
from django.utils.translation import ugettext as _
43

54
class KeyValueStoreManager(models.Manager):
65
def get_value_for_key(self, key):
@@ -15,6 +14,6 @@ def get_value_for_key(self, key):
1514

1615
return obj.value
1716
except:
18-
raise KeyError(_(u"The request key '%s' could not be found." % (key,)))
17+
raise KeyError(u"The request key '%s' could not be found." % key)
1918
else:
2019
return cached

keyvaluestore/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from django.db import models
2-
from django.utils.translation import ugettext as _
2+
from django.utils.translation import ugettext_lazy as _
33
from django.core.cache import cache
44

55
from keyvaluestore.managers import KeyValueStoreManager

0 commit comments

Comments
 (0)