This repository was archived by the owner on Dec 1, 2025. It is now read-only.
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
in_bulk queries do not include a _cls attribute, so objects that inherit from the same base class can unexpectedly be returned #34
Right now, when using the
in_bulkmethod, a_clsis not included in the query.So, if you have documents like:
And then you try to do:
a
ChildOneobject will be returned even though you're using theChildTwodocument. This happens because a_clsis not included in thein_bulkquery, so it just looks through the entire collection.