Skip to content

Commit 8708280

Browse files
committed
Fixed django#11556 -- Clarified the argument required by get_object_or_404. Thanks to rbonvall for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11344 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 3412860 commit 8708280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/intro/tutorial03.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ shortcut. Here's the ``detail()`` view, rewritten::
326326
return render_to_response('polls/detail.html', {'poll': p})
327327

328328
The :func:`~django.shortcuts.get_object_or_404` function takes a Django model
329-
module as its first argument and an arbitrary number of keyword arguments, which
330-
it passes to the module's :meth:`~django.db.models.QuerySet.get` function. It
329+
as its first argument and an arbitrary number of keyword arguments, which it
330+
passes to the module's :meth:`~django.db.models.QuerySet.get` function. It
331331
raises :exc:`~django.http.Http404` if the object doesn't exist.
332332

333333
.. admonition:: Philosophy

0 commit comments

Comments
 (0)