Deprecated depth kwarg on select_related.

This is the start of a deprecation path for the depth kwarg on
select_related. Removing this will allow us to update select_related so
it chains properly and have an API similar to prefetch_related.

Thanks to Marc Tamlyn for spearheading and initial patch.

refs #16855
This commit is contained in:
Preston Holmes 2012-11-02 15:49:29 +00:00
parent 7b57a72d6d
commit 965cc0b1ff
4 changed files with 30 additions and 14 deletions

View file

@ -298,6 +298,9 @@ these changes.
* The ``daily_cleanup.py`` script will be removed.
* The ``depth`` keyword argument will be removed from
:meth:`~django.db.models.query.QuerySet.select_related`.
2.0
---