Skip to content
Browse files

Fixed #2863 -- Fixed a small typo in one of the examples. Thanks

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3f41794 commit 31ff83e3ce853519ae9c836d654f3fbaf39c9dd7 @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/tutorial03.txt
2 docs/tutorial03.txt
@@ -257,7 +257,7 @@ provides a shortcut. Here's the full ``index()`` view, rewritten::
from mysite.polls.models import Poll
def index(request):
- latest_poll_list = Poll.objects.all().order_by('-pub_date')
+ latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
return render_to_response('polls/index.html', {'latest_poll_list': latest_poll_list})
Note that we no longer need to import ``loader``, ``Context`` or

0 comments on commit 31ff83e

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