diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-09-30 10:28:39 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-09-30 10:28:39 +0000 |
| commit | 2eadc418aff64790eb5b8d06ac995c720c233e49 (patch) | |
| tree | 054fbd3dd8742e4aed3100c015e564318c2a77db /docs/intro/tutorial03.txt | |
| parent | ec5bfed57ad86ec17a9169c279c967abbfbe52f9 (diff) | |
Fixed doc references to `django.db.models.query.QuerySet` and converted some tabs that were introduced in r16699 to spaces.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial03.txt')
| -rw-r--r-- | docs/intro/tutorial03.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index a489a77930..108d55c23c 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -321,9 +321,9 @@ will get you started for now. A shortcut: get_object_or_404() ------------------------------- -It's a very common idiom to use :meth:`~django.db.models.QuerySet.get` and raise -:exc:`~django.http.Http404` if the object doesn't exist. Django provides a -shortcut. Here's the ``detail()`` view, rewritten:: +It's a very common idiom to use :meth:`~django.db.models.query.QuerySet.get` +and raise :exc:`~django.http.Http404` if the object doesn't exist. Django +provides a shortcut. Here's the ``detail()`` view, rewritten:: from django.shortcuts import render_to_response, get_object_or_404 # ... @@ -333,8 +333,8 @@ shortcut. Here's the ``detail()`` view, rewritten:: 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 -passes to the module's :meth:`~django.db.models.QuerySet.get` function. It -raises :exc:`~django.http.Http404` if the object doesn't exist. +passes to the module's :meth:`~django.db.models.query.QuerySet.get` function. +It raises :exc:`~django.http.Http404` if the object doesn't exist. .. admonition:: Philosophy @@ -349,9 +349,9 @@ raises :exc:`~django.http.Http404` if the object doesn't exist. There's also a :func:`~django.shortcuts.get_list_or_404` function, which works just as :func:`~django.shortcuts.get_object_or_404` -- except using -:meth:`~django.db.models.QuerySet.filter` instead of -:meth:`~django.db.models.QuerySet.get`. It raises :exc:`~django.http.Http404` if -the list is empty. +:meth:`~django.db.models.query.QuerySet.filter` instead of +:meth:`~django.db.models.query.QuerySet.get`. It raises +:exc:`~django.http.Http404` if the list is empty. Write a 404 (page not found) view ================================= |
