Permalink
Browse files

[1.1.X] Fixed #11589 -- Corrected an argument in the shortcuts docume…

…ntation. Thanks to tsaylor for the report.

Merge of r11531 and r11532 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 39c53b4 commit 10e3c9f1e0d4754a5fdeaa7ac8e03d8db53b29d6 @freakboy3742 freakboy3742 committed Sep 13, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/topics/http/shortcuts.txt
@@ -147,7 +147,7 @@ will be returned::
``get_object_or_404``
=====================
-.. function:: get_object_or_404(object, *args, **kwargs)
+.. function:: get_object_or_404(klass, *args, **kwargs)
Calls :meth:`~django.db.models.QuerySet.get()` on a given model manager,
but it raises ``django.http.Http404`` instead of the model's

0 comments on commit 10e3c9f

Please sign in to comment.