diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-02-22 06:06:56 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-02-22 06:06:56 +0000 |
| commit | 16d67a11ac69ed4ce5df5334fa2bf5cbc0768df9 (patch) | |
| tree | 100f9520d0bf2d0ba88b292dca9eff226baa5f2f /docs/topics/http | |
| parent | bd658cb814f527dc9302bd413e44f2d4cac36be4 (diff) | |
Fixed #10298 -- Corrected the example for the get_list_or_404 shortcut. Thanks to Dagur for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/http')
| -rw-r--r-- | docs/topics/http/shortcuts.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt index b60ccdd59a..d68faee258 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 |
