File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11from django .db import models
22from django .core .cache import cache
3- from django .utils .translation import ugettext as _
43
54class 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
Original file line number Diff line number Diff line change 11from django .db import models
2- from django .utils .translation import ugettext as _
2+ from django .utils .translation import ugettext_lazy as _
33from django .core .cache import cache
44
55from keyvaluestore .managers import KeyValueStoreManager
You can’t perform that action at this time.
0 commit comments