Skip to content

Commit

Permalink
use ugettext_lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
KMahoney committed Jan 29, 2016
1 parent bab67d2 commit fbf24ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions keyvaluestore/managers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.db import models
from django.core.cache import cache
from django.utils.translation import ugettext as _

class KeyValueStoreManager(models.Manager):
def get_value_for_key(self, key):
Expand All @@ -15,6 +14,6 @@ def get_value_for_key(self, key):

return obj.value
except:
raise KeyError(_(u"The request key '%s' could not be found." % (key,)))
raise KeyError(u"The request key '%s' could not be found." % key)
else:
return cached
2 changes: 1 addition & 1 deletion keyvaluestore/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.db import models
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from django.core.cache import cache

from keyvaluestore.managers import KeyValueStoreManager
Expand Down

0 comments on commit fbf24ee

Please sign in to comment.