From 429b57d642eeadee418d8a83ad7652133ac682ed Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 22 Feb 2009 06:39:55 +0000 Subject: [PATCH] [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 --- docs/topics/http/shortcuts.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt index b60ccdd59a198..d68faee2589b6 100644 --- a/docs/topics/http/shortcuts.txt +++ b/docs/topics/http/shortcuts.txt @@ -148,6 +148,6 @@ This example is equivalent to:: from django.http import Http404 def my_view(request): - my_objects = MyModel.objects.filter(published=True) + my_objects = list(MyModel.objects.filter(published=True)) if not my_objects: raise Http404