Author: adrian
Date: 2006-07-17 09:16:17 -0500 (Mon, 17 Jul 2006)
New Revision: 3356

Modified:
   django/trunk/docs/tutorial03.txt
Log:
Fixed #2356 -- Removed references to get_object() from docs/tutorial03.txt. 
Thanks, toddobryan

Modified: django/trunk/docs/tutorial03.txt
===================================================================
--- django/trunk/docs/tutorial03.txt    2006-07-16 23:11:33 UTC (rev 3355)
+++ django/trunk/docs/tutorial03.txt    2006-07-17 14:16:17 UTC (rev 3356)
@@ -288,7 +288,7 @@
 A shortcut: get_object_or_404()
 -------------------------------
 
-It's a very common idiom to use ``get_object()`` and raise ``Http404`` if the
+It's a very common idiom to use ``get()`` and raise ``Http404`` if the
 object doesn't exist. Django provides a shortcut. Here's the ``detail()`` view,
 rewritten::
 
@@ -313,8 +313,8 @@
     foremost design goals of Django is to maintain loose coupling.
 
 There's also a ``get_list_or_404()`` function, which works just as
-``get_object_or_404()`` -- except using ``get_list()`` instead of
-``get_object()``. It raises ``Http404`` if the list is empty.
+``get_object_or_404()`` -- except using ``filter()`` instead of
+``get()``. It raises ``Http404`` if the list is empty.
 
 Write a 404 (page not found) view
 =================================


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to