Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added 'New in Django development version' to docs/db-api.txt change f…

…rom [5746]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6b7c33286a42d3f5432932240074359ef3108f98 1 parent da6b386
Adrian Holovaty authored July 25, 2007

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  docs/db-api.txt
6  docs/db-api.txt
@@ -1911,9 +1911,9 @@ For example::
1911 1911
     # entry with a primary key of 3
1912 1912
     e = get_object_or_404(Entry.recent_entries, pk=3)
1913 1913
 
1914  
-If you need to use a custom method that you added to a custom manager,
1915  
-then you can provide ``get_object_or_404()`` with a ``QuerySet`` object.
1916  
-For example::
  1914
+**New in Django development version:** The first argument to
  1915
+``get_object_or_404()`` can be a ``QuerySet`` object. This is useful in cases
  1916
+where you've defined a custom manager method. For example::
1917 1917
 
1918 1918
     # Use a QuerySet returned from a 'published' method of a custom manager
1919 1919
     # in the search for an entry with primary key of 5

0 notes on commit 6b7c332

Please sign in to comment.
Something went wrong with that request. Please try again.