Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.x] Fixed an erroneous import in example code.

Backport of bd68f70 from master. Fixes #20595.
  • Loading branch information...
commit e65f0c255940f9f4ae5e3429e59f3d314104e1fc 1 parent 6035345
@sanfilippopablo sanfilippopablo authored claudep committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/topics/class-based-views/intro.txt
View
4 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"
Please sign in to comment.
Something went wrong with that request. Please try again.