Django

Code

Changeset 3356

Show
Ignore:
Timestamp:
07/17/06 09:16:17 (2 years ago)
Author:
adrian
Message:

Fixed #2356 -- Removed references to get_object() from docs/tutorial03.txt. Thanks, toddobryan

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/tutorial03.txt

    r3017 r3356  
    289289------------------------------- 
    290290 
    291 It's a very common idiom to use ``get_object()`` and raise ``Http404`` if the 
     291It's a very common idiom to use ``get()`` and raise ``Http404`` if the 
    292292object doesn't exist. Django provides a shortcut. Here's the ``detail()`` view, 
    293293rewritten:: 
     
    314314 
    315315There's also a ``get_list_or_404()`` function, which works just as 
    316 ``get_object_or_404()`` -- except using ``get_list()`` instead of 
    317 ``get_object()``. It raises ``Http404`` if the list is empty. 
     316``get_object_or_404()`` -- except using ``filter()`` instead of 
     317``get()``. It raises ``Http404`` if the list is empty. 
    318318 
    319319Write a 404 (page not found) view