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.
(self, max_depth=1)
| 872 | return new_qs |
| 873 | |
| 874 | def select_related(self, max_depth=1): |
| 875 | """Handles dereferencing of :class:`~bson.dbref.DBRef` objects or |
| 876 | :class:`~bson.object_id.ObjectId` a maximum depth in order to cut down |
| 877 | the number queries to mongodb. |
| 878 | """ |
| 879 | # Make select related work the same for querysets |
| 880 | max_depth += 1 |
| 881 | queryset = self.clone() |
| 882 | return queryset._dereference(queryset, max_depth=max_depth) |
| 883 | |
| 884 | def limit(self, n): |
| 885 | """Limit the number of returned documents to `n`. This may also be |
nothing calls this directly
no test coverage detected