summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorJavier Buzzi <buzzi.javier@gmail.com>2018-09-19 19:51:01 +0200
committerTim Graham <timograham@gmail.com>2018-09-19 13:51:01 -0400
commita0d63b02c34e6d18d7219cce4d828f71432265e9 (patch)
treeb72d4a6c6c0f31777f5259fb379b4e0d3080b5bc /django/utils/functional.py
parent9cbdb44014c8027f1b4571bac701a247b0ce02a3 (diff)
Fixed #29772 -- Made LazyObject proxy __lt__() and __gt__().
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 146a2e8dc2..1481bf4a5e 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -304,6 +304,8 @@ class LazyObject:
# care about this (especially in equality tests)
__class__ = property(new_method_proxy(operator.attrgetter("__class__")))
__eq__ = new_method_proxy(operator.eq)
+ __lt__ = new_method_proxy(operator.lt)
+ __gt__ = new_method_proxy(operator.gt)
__ne__ = new_method_proxy(operator.ne)
__hash__ = new_method_proxy(hash)