Skip to content

Commit

Permalink
Merge pull request #901 from giamfreeg/master
Browse files Browse the repository at this point in the history
Fixed an erroneous import in example code of docs (class-based-views/intro).
  • Loading branch information
aaugustin committed Mar 15, 2013
2 parents 7db4c81 + bd68f70 commit f8c7c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/topics/class-based-views/intro.txt
Expand Up @@ -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):
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f8c7c8f

Please sign in to comment.