Author: adrian
Date: 2007-07-24 22:15:05 -0500 (Tue, 24 Jul 2007)
New Revision: 5757

Modified:
   django/trunk/docs/db-api.txt
Log:
Added 'New in Django development version' to docs/db-api.txt change from [5746]

Modified: django/trunk/docs/db-api.txt
===================================================================
--- django/trunk/docs/db-api.txt        2007-07-25 03:12:31 UTC (rev 5756)
+++ django/trunk/docs/db-api.txt        2007-07-25 03:15:05 UTC (rev 5757)
@@ -1911,9 +1911,9 @@
     # 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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to