-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address #16855 - Deprecate depth kwarg on select_related. #488
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -622,6 +622,11 @@ select_related | |
|
||
.. method:: select_related() | ||
|
||
.. deprecated:: 1.5 | ||
The ``depth`` parameter to ``select_related()`` has been deprecated. You | ||
should replace it with the use of the ``(*fields)`` format instead. See the | ||
:doc:`Django 1.5 release notes</releases/1.5>` for more information. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI - the deprecated sphinx directive automatically inserts a "see release notes" link There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wrong that is only for version added - but in this case the release note doesn't add much, if anything. |
||
|
||
Returns a ``QuerySet`` that will automatically "follow" foreign-key | ||
relationships, selecting that additional related-object data when it executes | ||
its query. This is a performance booster which results in (sometimes much) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a PendingDeprecationWarning at this time. (Also a \n would help readability.)