浏览代码

[fixes] in doclist.get()

version-14
Nabin Hait 12 年前
父节点
当前提交
77372fce22
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      webnotes/model/doclist.py

+ 2
- 2
webnotes/model/doclist.py 查看文件

@@ -40,9 +40,9 @@ class DocList(list):
for f in filters: for f in filters:
fval = filters[f] fval = filters[f]
if fval==True:
if fval is True:
fval = ["not None", fval] fval = ["not None", fval]
elif fval==False:
elif fval is False:
fval = ["None", fval] fval = ["None", fval]
elif not isinstance(fval, list): elif not isinstance(fval, list):
if isinstance(fval, basestring) and fval.startswith("^"): if isinstance(fval, basestring) and fval.startswith("^"):


正在加载...
取消
保存