Changeset 3912
- Timestamp:
- 10/23/06 02:42:04 (2 years ago)
- Files:
-
- django/trunk/docs/tutorial03.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/tutorial03.txt
r3883 r3912 258 258 259 259 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] 261 261 return render_to_response('polls/index.html', {'latest_poll_list': latest_poll_list}) 262 262
