Skip to content

Commit

Permalink
Merge pull request #234 from tonjo/master
Browse files Browse the repository at this point in the history
Fixing chaining filter problem -> check to avoid NoneType bitwise and operation
  • Loading branch information
mhluongo committed Jan 29, 2014
2 parents 3c36c15 + 681dfdf commit 88db672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neo4django/db/models/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,8 @@ def as_groovy(self, using):
index_qs_dict = {}
for key, val in index_qs:
if key in index_qs_dict:
index_qs_dict[key] &= val
if index_qs_dict[key]:
index_qs_dict[key] &= val
else:
index_qs_dict[key] = val

Expand Down

0 comments on commit 88db672

Please sign in to comment.