diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-03-15 06:23:21 -0700 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-03-15 06:23:21 -0700 |
| commit | f8c7c8f27b061b65d2dec98510bb9e76e1547791 (patch) | |
| tree | 22d19f3afc580a2b17dafdac9fe15057fb75e3ea /docs | |
| parent | 7db4c81d5edb8e7681193d6c9c237e15fedf7ac3 (diff) | |
| parent | bd68f701b1867e0a9cf17d7f0948ba493d11b7e5 (diff) | |
Merge pull request #901 from giamfreeg/master
Fixed an erroneous import in example code of docs (class-based-views/intro).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/class-based-views/intro.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/class-based-views/intro.txt b/docs/topics/class-based-views/intro.txt index 11d1f84ffe..7764e417fc 100644 --- a/docs/topics/class-based-views/intro.txt +++ b/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" |
