Added changeset, updated documentation and tests, changed test condition

This commit is contained in:
Eremeev Danil
2015-05-05 12:00:46 +05:00
parent 63d55cb797
commit dfa8eaf24e
4 changed files with 14 additions and 3 deletions

View File

@@ -44,7 +44,8 @@ def query(_doc_cls=None, _field_operation=False, **query):
if len(parts) > 1 and parts[-1] in MATCH_OPERATORS:
op = parts.pop()
if len(parts) > 1 and not parts[-1]:
#if user escape field name by __
if len(parts) > 1 and parts[-1]=="":
parts.pop()
negate = False