Ticket #10298: docs-shortcuts.diff
File docs-shortcuts.diff, 476 bytes (added by , 16 years ago) |
---|
-
docs/topics/http/shortcuts.txt
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