Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix proxy objects to respect !=

  • Loading branch information...
commit d58c98d73c41b97e9543f88d3a81ffa6f23e4c7d 1 parent 38a8cf1
@andrewgodwin andrewgodwin authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 django/utils/functional.py
View
5 django/utils/functional.py
@@ -147,6 +147,11 @@ def __cast(self):
else:
return func(*self.__args, **self.__kw)
+ def __ne__(self, other):
+ if isinstance(other, Promise):
+ other = other.__cast()
+ return self.__cast() != other
+
def __eq__(self, other):
if isinstance(other, Promise):
other = other.__cast()
Please sign in to comment.
Something went wrong with that request. Please try again.