Handles dereferencing of :class:`~bson.dbref.DBRef` objects to a maximum depth in order to cut down the number queries to mongodb.
(self, max_depth=1)
| 752 | return self |
| 753 | |
| 754 | def select_related(self, max_depth=1): |
| 755 | """Handles dereferencing of :class:`~bson.dbref.DBRef` objects to |
| 756 | a maximum depth in order to cut down the number queries to mongodb. |
| 757 | """ |
| 758 | DeReference = _import_class("DeReference") |
| 759 | DeReference()([self], max_depth + 1) |
| 760 | return self |
| 761 | |
| 762 | def reload(self, *fields, **kwargs): |
| 763 | """Reloads all attributes from the database. |