Skip to content

Commit 63cc023

Browse files
committed
Shortcut functions do not accept QuerySet objects, yet :)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent d95e91b commit 63cc023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django/shortcuts/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_object_or_404(klass, *args, **kwargs):
2121
Use get() to return an object, or raise a Http404 exception if the object
2222
does not exist.
2323
24-
klass may be a Model, Manager, or QuerySet object. All other passed
24+
klass may be a Model or Manager object. All other passed
2525
arguments and keyword arguments are used in the get() query.
2626
2727
Note: Like with get(), an AssertionError will be raised if more than one
@@ -42,7 +42,7 @@ def get_list_or_404(klass, *args, **kwargs):
4242
Use filter() to return a list of objects, or raise a Http404 exception if
4343
the list is empty.
4444
45-
klass may be a Model, Manager, or QuerySet object. All other passed
45+
klass may be a Model or Manager object. All other passed
4646
arguments and keyword arguments are used in the filter() query.
4747
"""
4848
if isinstance(klass, Manager):

0 commit comments

Comments
 (0)