0.5: Django 3.2 support, drop Django<1.11, Python<3.6, remove some compatibility...
[fnpdjango.git] / fnpdjango / utils / settings.py
index 43f49ec..83b0302 100644 (file)
@@ -1,19 +1,10 @@
 """
 Utilities for global settings.
 """
-from django.utils.encoding import python_2_unicode_compatible
+from django.utils.functional import Promise
 
-# Use Python3 str.
-try:
-    unicode
-except NameError:
-    pass
-else:
-    str = unicode
 
-
-@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.