summaryrefslogtreecommitdiff
path: root/docs/db-api.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-07-25 03:15:05 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-07-25 03:15:05 +0000
commit6b7c33286a42d3f5432932240074359ef3108f98 (patch)
tree4dd7c186e2dea7048bc7f7c39ba9461a490d09fa /docs/db-api.txt
parentda6b3865ae096dadedc4827bbc316fe76e519802 (diff)
Added 'New in Django development version' to docs/db-api.txt change from [5746]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/db-api.txt')
-rw-r--r--docs/db-api.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index 9d0d4358f5..39f4b1e16f 100644
--- a/docs/db-api.txt
+++ b/docs/db-api.txt
@@ -1911,9 +1911,9 @@ For example::
# entry with a primary key of 3
e = get_object_or_404(Entry.recent_entries, pk=3)
-If you need to use a custom method that you added to a custom manager,
-then you can provide ``get_object_or_404()`` with a ``QuerySet`` object.
-For example::
+**New in Django development version:** The first argument to
+``get_object_or_404()`` can be a ``QuerySet`` object. This is useful in cases
+where you've defined a custom manager method. For example::
# Use a QuerySet returned from a 'published' method of a custom manager
# in the search for an entry with primary key of 5