django-mongodb-engine/mongodb-engine — Issue #89: Problem when retrieving objects with AND over multiple OR statements
Author: hanson2010
Created: 2011-11-23 09:50:14+00:00
State: open

I'm using Django 1.3 on MongoDB, and met a weird situation.

```#!python
Project.objects.filter(
Q(owner=u'A') | Q(owner=u'B'),
Q(owner=u'C') | Q(owner=u'D'),
)
```

The above returned queryset is same to Project.objects.filter(Q(owner=u'C') | Q(owner=u'D')), but not None, as expected. It seems that the first half lookup function was omitted.

Does someone know that it's problem with Django or third-party mongodb-engine libraries? Thanks in ad!