Skip to content

Commit bd68f70

Browse files
Fixed an erroneous import in example code.
1 parent 5d8342f commit bd68f70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/class-based-views/intro.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ something like::
7171
In a class-based view, this would become::
7272

7373
from django.http import HttpResponse
74-
from django.views.base import View
74+
from django.views.generic.base import View
7575

7676
class MyView(View):
7777
def get(self, request):
@@ -113,7 +113,7 @@ and methods in the subclass. So that if your parent class had an attribute
113113
``greeting`` like this::
114114

115115
from django.http import HttpResponse
116-
from django.views.base import View
116+
from django.views.generic.base import View
117117

118118
class GreetingView(View):
119119
greeting = "Good Day"

0 commit comments

Comments
 (0)