Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Word-wrapped some code examples in tutorial03

git-svn-id: http://code.djangoproject.com/svn/django/trunk@200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 851b14deca6eda4d4b6312f8ed10f65c14115c9c 1 parent 09e825c
Adrian Holovaty authored July 19, 2005

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  docs/tutorial03.txt
6  docs/tutorial03.txt
@@ -172,7 +172,8 @@ publication date::
172 172
     from django.utils.httpwrappers import HttpResponse
173 173
 
174 174
     def index(request):
175  
-        latest_poll_list = polls.get_list(order_by=[('pub_date', 'DESC')], limit=5)
  175
+        latest_poll_list = polls.get_list(order_by=[('pub_date', 'DESC')],
  176
+            limit=5)
176 177
         output = ', '.join([p.question for p in latest_poll_list])
177 178
         return HttpResponse(output)
178 179
 
@@ -186,7 +187,8 @@ So let's use Django's template system to separate the design from Python::
186 187
     from django.utils.httpwrappers import HttpResponse
187 188
 
188 189
     def index(request):
189  
-        latest_poll_list = polls.get_list(order_by=[('pub_date', 'DESC')], limit=5)
  190
+        latest_poll_list = polls.get_list(order_by=[('pub_date', 'DESC')],
  191
+            limit=5)
190 192
         t = template_loader.get_template('polls/index')
191 193
         c = Context(request, {
192 194
             'latest_poll_list': latest_poll_list,

0 notes on commit 851b14d

Please sign in to comment.
Something went wrong with that request. Please try again.