Django

Code

Changeset 3359

Show
Ignore:
Timestamp:
07/18/06 20:35:58 (2 years ago)
Author:
mtredinnick
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/tutorial03.txt

    r3356 r3359  
    190190 
    191191    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] 
    193193        output = ', '.join([p.question for p in latest_poll_list]) 
    194194        return HttpResponse(output) 
     
    203203 
    204204    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] 
    206206        t = loader.get_template('polls/index.html') 
    207207        c = Context({