Fixed an erroneous import in example code.

This commit is contained in:
Pablo Sanfilippo 2013-03-13 14:16:27 -03:00
parent 5d8342f321
commit bd68f701b1
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ something like::
In a class-based view, this would become:: In a class-based view, this would become::
from django.http import HttpResponse from django.http import HttpResponse
from django.views.base import View from django.views.generic.base import View
class MyView(View): class MyView(View):
def get(self, request): 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:: ``greeting`` like this::
from django.http import HttpResponse from django.http import HttpResponse
from django.views.base import View from django.views.generic.base import View
class GreetingView(View): class GreetingView(View):
greeting = "Good Day" greeting = "Good Day"