Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #10298 -- Corrected the example for the get_list_or_404…

… shortcut. Thanks to Dagur for the report.

Merge of r9857 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 429b57d642eeadee418d8a83ad7652133ac682ed 1 parent a21e170
Russell Keith-Magee authored February 22, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/topics/http/shortcuts.txt
2  docs/topics/http/shortcuts.txt
@@ -148,6 +148,6 @@ This example is equivalent to::
148 148
     from django.http import Http404
149 149
 
150 150
     def my_view(request):
151  
-        my_objects = MyModel.objects.filter(published=True)
  151
+        my_objects = list(MyModel.objects.filter(published=True))
152 152
         if not my_objects:
153 153
             raise Http404

0 notes on commit 429b57d

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