From 84504c690051ded929e56a964754a1a0651fb6ff Mon Sep 17 00:00:00 2001 From: Breath123 Date: Mon, 9 Sep 2019 12:51:20 +0800 Subject: [PATCH] Fixed imports in the first example in tutorial (#684) fixes #683 --- docs/pages/tutorial.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/tutorial.rst b/docs/pages/tutorial.rst index 6e372230..b5af45d0 100644 --- a/docs/pages/tutorial.rst +++ b/docs/pages/tutorial.rst @@ -42,11 +42,11 @@ Add the view to your ``urls.py``:: from django.urls import path from django.contrib import admin - from tutorial.views import people + from tutorial.views import PersonListView urlpatterns = [ path("admin/", admin.site.urls), - path("people/", people) + path("people/", PersonListView.as_view()) ] Finally, create the template::