mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user