You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, when using the in_bulk method, a _cls is not included in the query.
So, if you have documents like:
class Parent(Document):
...
class ChildOne(Parent):
...
class ChildTwo(Parent):
...
And then you try to do:
ChildTwo.objects.in_bulk(["PK of a ChildOne object"])
a ChildOne object will be returned even though you're using the ChildTwo document. This happens because a _cls is not included in the in_bulk query, so it just looks through the entire collection.
The text was updated successfully, but these errors were encountered:
Right now, when using the
in_bulk
method, a_cls
is not included in the query.So, if you have documents like:
And then you try to do:
a
ChildOne
object will be returned even though you're using theChildTwo
document. This happens because a_cls
is not included in thein_bulk
query, so it just looks through the entire collection.The text was updated successfully, but these errors were encountered: