소스 검색

Fixed #20266 -- Updated view example in CBV introduction

Thanks jim at hellolocals.com for the report.
Claude Paroz 12 년 전
부모
커밋
58b3a974fc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/topics/class-based-views/intro.txt

+ 1 - 1
docs/topics/class-based-views/intro.txt

@@ -130,7 +130,7 @@ Another option is to configure class attributes as keyword arguments to the
 :meth:`~django.views.generic.base.View.as_view` call in the URLconf::
 
     urlpatterns = patterns('',
-        (r'^about/', MyView.as_view(greeting="G'day")),
+        (r'^about/', GreetingView.as_view(greeting="G'day")),
     )
 
 .. note::