Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed an erroneous import in example code.

  • Loading branch information...
commit bd68f701b1867e0a9cf17d7f0948ba493d11b7e5 1 parent 5d8342f
@sanfilippopablo sanfilippopablo authored
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"

0 comments on commit bd68f70

Please sign in to comment.
Something went wrong with that request. Please try again.