[1.5.x] Clarified get_list_or_404 docs, refs #14150.
Backport of e161e4ff11
from master
This commit is contained in:
parent
11a8a7f266
commit
7e6c0387b3
|
@ -275,8 +275,8 @@ will be raised if more than one object is found.
|
||||||
.. function:: get_list_or_404(klass, *args, **kwargs)
|
.. function:: get_list_or_404(klass, *args, **kwargs)
|
||||||
|
|
||||||
Returns the result of :meth:`~django.db.models.query.QuerySet.filter()` on a
|
Returns the result of :meth:`~django.db.models.query.QuerySet.filter()` on a
|
||||||
given model manager, raising :class:`~django.http.Http404` if the resulting
|
given model manager cast to a list, raising :class:`~django.http.Http404` if
|
||||||
list is empty.
|
the resulting list is empty.
|
||||||
|
|
||||||
Required arguments
|
Required arguments
|
||||||
------------------
|
------------------
|
||||||
|
|
Loading…
Reference in New Issue