Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2355 -- Corrected a couple of small typos in code examples in …

…tutorial03.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 533594d1a5a943ef80360762d5c5d021975a9bde 1 parent c6cbfb3
Malcolm Tredinnick authored July 19, 2006

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/tutorial03.txt
4  docs/tutorial03.txt
@@ -189,7 +189,7 @@ publication date::
189 189
     from django.http import HttpResponse
190 190
 
191 191
     def index(request):
192  
-        latest_poll_list = Poll.objects.all().order_by('-pub_date')
  192
+        latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
193 193
         output = ', '.join([p.question for p in latest_poll_list])
194 194
         return HttpResponse(output)
195 195
 
@@ -202,7 +202,7 @@ So let's use Django's template system to separate the design from Python::
202 202
     from django.http import HttpResponse
203 203
 
204 204
     def index(request):
205  
-        latest_poll_list = Poll.objects.all().order_by('-pub_date')
  205
+        latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
206 206
         t = loader.get_template('polls/index.html')
207 207
         c = Context({
208 208
             'latest_poll_list': latest_poll_list,

0 notes on commit 533594d

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