There was an error while loading. Please reload this page.
2 parents 7db4c81 + bd68f70 commit f8c7c8fCopy full SHA for f8c7c8f
docs/topics/class-based-views/intro.txt
@@ -71,7 +71,7 @@ something like::
71
In a class-based view, this would become::
72
73
from django.http import HttpResponse
74
- from django.views.base import View
+ from django.views.generic.base import View
75
76
class MyView(View):
77
def get(self, request):
@@ -113,7 +113,7 @@ and methods in the subclass. So that if your parent class had an attribute
113
``greeting`` like this::
114
115
116
117
118
class GreetingView(View):
119
greeting = "Good Day"
0 commit comments