-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Querying too restrictive (and inconsistent with MongoDB shell) #332
Comments
Maybe the example above is unfortunate, since it's basically JS that transforms |
Dealing with in #333 |
I'm sorry for that I know this issue is closed, but I think this issue is not fixed actually. Foo.objects.filter(bar__contains = 'something', bar__contains = 'someother') currently, I have commented the mongoengine/queryset/vistor.py 53~58, and test fine. Hope my poor English wont cause your trouble. |
Hi @Hugh-wong! |
@wojcikstefan |
Mongo shell:
MongoEngine
Shouldn't these be consistent (i.e. filter by the last argument)? I understand that generally you don't wanna end up with this type of query, but sometimes it's very hard/impossible. Also, there's no easy way to "unset" a query parameter, so if you get a filtered set, it basically means you're restricted to parameters that haven't been used before.
This is even more important in ver. 0.8, since the queryset cloning finally works as expected.
The text was updated successfully, but these errors were encountered: