From 77372fce22c6f0f52a3116a4fbf88b54ff78765f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 29 May 2013 12:31:16 +0530 Subject: [PATCH] [fixes] in doclist.get() --- webnotes/model/doclist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webnotes/model/doclist.py b/webnotes/model/doclist.py index 9c7c626736..a50e4d3f8f 100644 --- a/webnotes/model/doclist.py +++ b/webnotes/model/doclist.py @@ -40,9 +40,9 @@ class DocList(list): for f in filters: fval = filters[f] - if fval==True: + if fval is True: fval = ["not None", fval] - elif fval==False: + elif fval is False: fval = ["None", fval] elif not isinstance(fval, list): if isinstance(fval, basestring) and fval.startswith("^"):