Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #11589 -- Corrected an argument in the shortcuts documentation.…

… Thanks to tsaylor for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 15f36107473156dd58e6061ded4f0f49dff338b4 1 parent d2321e3
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/http/shortcuts.txt
View
2  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(Model, *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
Please sign in to comment.
Something went wrong with that request. Please try again.