fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make LazyUGettext a Promise so it deconstructs nicely.
[fnpdjango.git]
/
fnpdjango
/
utils
/
settings.py
diff --git
a/fnpdjango/utils/settings.py
b/fnpdjango/utils/settings.py
index
43f49ec
..
1f5ea2d
100644
(file)
--- a/
fnpdjango/utils/settings.py
+++ b/
fnpdjango/utils/settings.py
@@
-2,6
+2,7
@@
Utilities for global settings.
"""
from django.utils.encoding import python_2_unicode_compatible
Utilities for global settings.
"""
from django.utils.encoding import python_2_unicode_compatible
+from django.utils.functional import Promise
# Use Python3 str.
try:
# Use Python3 str.
try:
@@
-13,7
+14,7
@@
else:
@python_2_unicode_compatible
@python_2_unicode_compatible
-class LazyUGettextLazy(
object
):
+class LazyUGettextLazy(
Promise
):
"""You can use it to internationalize strings in settings.
Just import this class as gettext.
"""You can use it to internationalize strings in settings.
Just import this class as gettext.