Kaydet (Commit) f8c7c8f2 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Merge pull request #901 from giamfreeg/master

Fixed an erroneous import in example code of docs (class-based-views/intro).
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment