summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/template/smartif.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/template/smartif.py b/django/template/smartif.py
index a3c1f37973..1433a8499a 100644
--- a/django/template/smartif.py
+++ b/django/template/smartif.py
@@ -98,6 +98,7 @@ OPERATORS = {
'not': prefix(8, lambda context, x: not x.eval(context)),
'in': infix(9, lambda context, x, y: x.eval(context) in y.eval(context)),
'not in': infix(9, lambda context, x, y: x.eval(context) not in y.eval(context)),
+ 'is': infix(10, lambda context, x, y: x.eval(context) is y.eval(context)),
'==': infix(10, lambda context, x, y: x.eval(context) == y.eval(context)),
'!=': infix(10, lambda context, x, y: x.eval(context) != y.eval(context)),
'>': infix(10, lambda context, x, y: x.eval(context) > y.eval(context)),