[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
This commit is contained in:
Russell Keith-Magee 2009-02-22 06:39:55 +00:00
parent a21e170de7
commit 429b57d642
1 changed files with 1 additions and 1 deletions

View File

@ -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