Fixed #18281 -- Misleading wording in the tutorial.
Thanks bhp for the report.
This commit is contained in:
parent
1c30063faf
commit
367379581f
|
@ -332,8 +332,9 @@ provides a shortcut. Here's the ``detail()`` view, rewritten::
|
||||||
|
|
||||||
The :func:`~django.shortcuts.get_object_or_404` function takes a Django model
|
The :func:`~django.shortcuts.get_object_or_404` function takes a Django model
|
||||||
as its first argument and an arbitrary number of keyword arguments, which it
|
as its first argument and an arbitrary number of keyword arguments, which it
|
||||||
passes to the module's :meth:`~django.db.models.query.QuerySet.get` function.
|
passes to the :meth:`~django.db.models.query.QuerySet.get` function of the
|
||||||
It raises :exc:`~django.http.Http404` if the object doesn't exist.
|
model's manager. It raises :exc:`~django.http.Http404` if the object doesn't
|
||||||
|
exist.
|
||||||
|
|
||||||
.. admonition:: Philosophy
|
.. admonition:: Philosophy
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue