summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJaap Roes <jroes@leukeleu.nl>2015-11-27 17:19:19 +0100
committerTim Graham <timograham@gmail.com>2015-12-03 15:59:34 -0500
commitc6ea4ed5d23671deee6e736fe1daba2c650a4fbb (patch)
tree5073809ebc892daa94a1eb8223fe47b744159802 /django
parent395af23ac1f3499b21eba5ca085200bfce251290 (diff)
Fixed #25825 -- Implemented __ne__() for template Origin
Diffstat (limited to 'django')
-rw-r--r--django/template/base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/template/base.py b/django/template/base.py
index bbae6a408d..ce2c970378 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -151,6 +151,9 @@ class Origin(object):
self.loader == other.loader
)
+ def __ne__(self, other):
+ return not self.__eq__(other)
+
@property
def loader_name(self):
if self.loader: