Modified r11531 to use the original suggested text from the patch (which was better).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
15f3610747
commit
1ed9d29db8
|
@ -147,7 +147,7 @@ will be returned::
|
||||||
``get_object_or_404``
|
``get_object_or_404``
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
.. function:: get_object_or_404(Model, *args, **kwargs)
|
.. function:: get_object_or_404(klass, *args, **kwargs)
|
||||||
|
|
||||||
Calls :meth:`~django.db.models.QuerySet.get()` on a given model manager,
|
Calls :meth:`~django.db.models.QuerySet.get()` on a given model manager,
|
||||||
but it raises ``django.http.Http404`` instead of the model's
|
but it raises ``django.http.Http404`` instead of the model's
|
||||||
|
|
Loading…
Reference in New Issue