summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/functional.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 6d38f932f9..5c8a0c233f 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -176,6 +176,12 @@ def lazy(func, *resultclasses):
return str(self) % rhs
return self.__cast() % rhs
+ def __add__(self, other):
+ return self.__cast() + other
+
+ def __radd__(self, other):
+ return other + self.__cast()
+
def __deepcopy__(self, memo):
# Instances of this class are effectively immutable. It's just a
# collection of functions. So we don't need to do anything