X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/c5f50329c7ddea87333c6137d994252c47783aa4..610dacb44133c2efc65faa379a97eeda64d3581b:/fnpdjango/utils/settings.py diff --git a/fnpdjango/utils/settings.py b/fnpdjango/utils/settings.py index 43f49ec..1f5ea2d 100644 --- 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 +from django.utils.functional import Promise # Use Python3 str. try: @@ -13,7 +14,7 @@ else: @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.