summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPablo Sanfilippo <giamgreeg@gmail.com>2013-03-13 14:16:27 -0300
committerClaude Paroz <claude@2xlibre.net>2013-06-14 09:33:20 +0200
commite65f0c255940f9f4ae5e3429e59f3d314104e1fc (patch)
treefd726f821feb5db454babe16b0729a5b742652d1 /docs
parent60353458ae7105ea943dc425954403c581b05255 (diff)
[1.5.x] Fixed an erroneous import in example code.
Backport of bd68f701b from master. Fixes #20595.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/class-based-views/intro.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/class-based-views/intro.txt b/docs/topics/class-based-views/intro.txt
index 1e2fc1e131..dbbbea25f0 100644
--- a/docs/topics/class-based-views/intro.txt
+++ b/docs/topics/class-based-views/intro.txt
@@ -71,7 +71,7 @@ something like::
In a class-based view, this would become::
from django.http import HttpResponse
- from django.views.base import View
+ from django.views.generic.base import View
class MyView(View):
def get(self, request):
@@ -113,7 +113,7 @@ and methods in the subclass. So that if your parent class had an attribute
``greeting`` like this::
from django.http import HttpResponse
- from django.views.base import View
+ from django.views.generic.base import View
class GreetingView(View):
greeting = "Good Day"