Sfoglia il codice sorgente

Corrected some typos in the tutorial, thanks to Brandon Height for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Alex Gaynor 14 anni fa
parent
commit
3761f3b166
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      docs/intro/tutorial04.txt

+ 3 - 3
docs/intro/tutorial04.txt

@@ -238,16 +238,16 @@ Change it like so::
     urlpatterns = patterns('',
         (r'^$',
             ListView.as_view(
-                models=Poll,
+                model=Poll,
                 context_object_name='latest_poll_list',
                 template_name='polls/index.html')),
         (r'^(?P<pk>\d+)/$',
             DetailView.as_view(
-                models=Poll,
+                model=Poll,
                 template_name='polls/detail.html')),
         url(r'^(?P<pk>\d+)/results/$',
             DetailView.as_view(
-                models=Poll,
+                model=Poll,
                 template_name='polls/results.html'),
             name='poll_results'),
         (r'^(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),