mirror of
https://github.com/django/django.git
synced 2025-07-26 22:54:17 +00:00
Clarified get_list_or_404 docs, refs #14150.
This commit is contained in:
parent
299983616f
commit
e161e4ff11
1 changed files with 2 additions and 2 deletions
|
@ -277,8 +277,8 @@ will be raised if more than one object is found.
|
|||
.. function:: get_list_or_404(klass, *args, **kwargs)
|
||||
|
||||
Returns the result of :meth:`~django.db.models.query.QuerySet.filter()` on a
|
||||
given model manager, raising :class:`~django.http.Http404` if the resulting
|
||||
list is empty.
|
||||
given model manager cast to a list, raising :class:`~django.http.Http404` if
|
||||
the resulting list is empty.
|
||||
|
||||
Required arguments
|
||||
------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue