Fixed querying string versions of ObjectIds issue with ReferenceField (#307)
This commit is contained in:
parent
7cde979736
commit
9dfee83e68
4 changed files with 49 additions and 4 deletions
|
|
@ -544,8 +544,9 @@ class QuerySet(object):
|
|||
return c
|
||||
|
||||
def select_related(self, max_depth=1):
|
||||
"""Handles dereferencing of :class:`~bson.dbref.DBRef` objects to
|
||||
a maximum depth in order to cut down the number queries to mongodb.
|
||||
"""Handles dereferencing of :class:`~bson.dbref.DBRef` objects or
|
||||
:class:`~bson.object_id.ObjectId` a maximum depth in order to cut down
|
||||
the number queries to mongodb.
|
||||
|
||||
.. versionadded:: 0.5
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue