Django

Code

Changeset 3912

Show
Ignore:
Timestamp:
10/23/06 02:42:04 (2 years ago)
Author:
mtredinnick
Message:

Fixed #2863 -- Fixed a small typo in one of the examples. Thanks
bonovoxmofo@gmail.com.

Files:

Legend:

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

    r3883 r3912  
    258258 
    259259    def index(request): 
    260         latest_poll_list = Poll.objects.all().order_by('-pub_date') 
     260        latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5] 
    261261        return render_to_response('polls/index.html', {'latest_poll_list': latest_poll_list}) 
    262262