X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/c5f50329c7ddea87333c6137d994252c47783aa4..ab56fb2c29a05b2e82351d9a4275db5fcbe2c45a:/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.