Skip to content

Commit

Permalink
Fixed ReST bug in [678]
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@679 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Sep 23, 2005
1 parent b752832 commit eb3b1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial03.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -285,7 +285,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_object()`` and raise ``Http404`` if the
object doesn't exist. Django provides a shortcut. Here's the ``detail()`` view, object doesn't exist. Django provides a shortcut. Here's the ``detail()`` view,
rewritten: rewritten::


from django.core.extensions import get_object_or_404 from django.core.extensions import get_object_or_404
def detail(request, poll_id): def detail(request, poll_id):
Expand Down

0 comments on commit eb3b1cf

Please sign in to comment.