summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@rd.io>2013-04-19 10:58:29 -0700
committerAlex Gaynor <alex.gaynor@rd.io>2013-04-19 10:58:29 -0700
commit714161c8642646f1f617436479313ca49c71b5c8 (patch)
tree6cc97f81be0a29d52ed9e32fb2e72192c7532933 /django/utils/functional.py
parent59d127e45f5ed31e346162a0ac312f672c096821 (diff)
Fix != operations on lazy objects.
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 13aec9cb82..1592828c7f 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -346,6 +346,7 @@ class SimpleLazyObject(LazyObject):
# care about this (especially in equality tests)
__class__ = property(new_method_proxy(operator.attrgetter("__class__")))
__eq__ = new_method_proxy(operator.eq)
+ __ne__ = new_method_proxy(operator.ne)
__hash__ = new_method_proxy(hash)
__bool__ = new_method_proxy(bool) # Python 3
__nonzero__ = __bool__ # Python 2