summaryrefslogtreecommitdiff
path: root/docs/tutorial03.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-19 05:55:42 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-19 05:55:42 +0000
commit851b14deca6eda4d4b6312f8ed10f65c14115c9c (patch)
tree0e5edab5f2bd1ef65611e881048638b8abeab2c4 /docs/tutorial03.txt
parent09e825c7466b87e2a974a07453156d1cd6fc70e5 (diff)
Word-wrapped some code examples in tutorial03
git-svn-id: http://code.djangoproject.com/svn/django/trunk@200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial03.txt')
-rw-r--r--docs/tutorial03.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/tutorial03.txt b/docs/tutorial03.txt
index 6a4ec9952a..74e2a941ca 100644
--- a/docs/tutorial03.txt
+++ b/docs/tutorial03.txt
@@ -172,7 +172,8 @@ publication date::
from django.utils.httpwrappers import HttpResponse
def index(request):
- latest_poll_list = polls.get_list(order_by=[('pub_date', 'DESC')], limit=5)
+ latest_poll_list = polls.get_list(order_by=[('pub_date', 'DESC')],
+ limit=5)
output = ', '.join([p.question for p in latest_poll_list])
return HttpResponse(output)
@@ -186,7 +187,8 @@ So let's use Django's template system to separate the design from Python::
from django.utils.httpwrappers import HttpResponse
def index(request):
- latest_poll_list = polls.get_list(order_by=[('pub_date', 'DESC')], limit=5)
+ latest_poll_list = polls.get_list(order_by=[('pub_date', 'DESC')],
+ limit=5)
t = template_loader.get_template('polls/index')
c = Context(request, {
'latest_poll_list': latest_poll_list,