Author: mtredinnick
Date: 2006-07-18 20:35:58 -0500 (Tue, 18 Jul 2006)
New Revision: 3359

Modified:
   django/trunk/docs/tutorial03.txt
Log:
Fixed #2355 -- Corrected a couple of small typos in code examples in tutorial03.


Modified: django/trunk/docs/tutorial03.txt
===================================================================
--- django/trunk/docs/tutorial03.txt    2006-07-17 14:59:41 UTC (rev 3358)
+++ django/trunk/docs/tutorial03.txt    2006-07-19 01:35:58 UTC (rev 3359)
@@ -189,7 +189,7 @@
     from django.http import HttpResponse
 
     def index(request):
-        latest_poll_list = Poll.objects.all().order_by('-pub_date')
+        latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
         output = ', '.join([p.question for p in latest_poll_list])
         return HttpResponse(output)
 
@@ -202,7 +202,7 @@
     from django.http import HttpResponse
 
     def index(request):
-        latest_poll_list = Poll.objects.all().order_by('-pub_date')
+        latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
         t = loader.get_template('polls/index.html')
         c = Context({
             'latest_poll_list': latest_poll_list,


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to