diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-19 04:03:07 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-19 04:03:07 +0000 |
| commit | 5fadeb848cea31415490074f608bbfa086b396b1 (patch) | |
| tree | 9d745c176807e0ae9ee93e4053aa7effeb33381e /docs/intro/tutorial04.txt | |
| parent | 3739f89b44ab075597f6a43627b4ab8c50563d10 (diff) | |
Fixed #14494 -- Cleanup and typo in tutorial 4, introduced by class-based view changes. Thanks to Andrews Medina for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial04.txt')
| -rw-r--r-- | docs/intro/tutorial04.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 9568546291..aac8b30cd1 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -235,15 +235,11 @@ Change it like so:: from django.views.generic import DetailView, ListView from polls.models import Poll - info_dict = { - 'queryset': Poll.objects.all(), - } - urlpatterns = patterns('', (r'^$', ListView.as_view( models=Poll, - context_object_name='latest_poll_list' + context_object_name='latest_poll_list', template_name='polls/index.html')), (r'^(?P<pk>\d+)/$', DetailView.as_view( |
