diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-10-23 07:42:04 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-10-23 07:42:04 +0000 |
| commit | 31ff83e3ce853519ae9c836d654f3fbaf39c9dd7 (patch) | |
| tree | d1267c1561e17c102a654f05bbf786185342629d /docs/tutorial03.txt | |
| parent | 3f4179464f04348167ff1033eaf353fab47297db (diff) | |
Fixed #2863 -- Fixed a small typo in one of the examples. Thanks
bonovoxmofo@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial03.txt')
| -rw-r--r-- | docs/tutorial03.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial03.txt b/docs/tutorial03.txt index b4f1d303dc..c4c1b4c546 100644 --- a/docs/tutorial03.txt +++ b/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 |
