Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Shortcut functions do not accept `QuerySet` objects, yet :)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 63cc023eea4faa0af570b548375666e48af15904 1 parent d95e91b
Gary Wilson Jr. authored July 22, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/shortcuts/__init__.py
4  django/shortcuts/__init__.py
@@ -21,7 +21,7 @@ def get_object_or_404(klass, *args, **kwargs):
21 21
     Use get() to return an object, or raise a Http404 exception if the object
22 22
     does not exist.
23 23
 
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
25 25
     arguments and keyword arguments are used in the get() query.
26 26
 
27 27
     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):
42 42
     Use filter() to return a list of objects, or raise a Http404 exception if
43 43
     the list is empty.
44 44
 
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
46 46
     arguments and keyword arguments are used in the filter() query.
47 47
     """
48 48
     if isinstance(klass, Manager):

0 notes on commit 63cc023

Please sign in to comment.
Something went wrong with that request. Please try again.