Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #14494 -- Cleanup and typo in tutorial 4, introduced by class-b…

…ased 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
  • Loading branch information...
commit 5fadeb848cea31415490074f608bbfa086b396b1 1 parent 3739f89
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 docs/intro/tutorial04.txt
View
6 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(
Please sign in to comment.
Something went wrong with that request. Please try again.