Ver código fonte

Fixed an erroneous import in example code.

Pablo Sanfilippo 12 anos atrás
pai
commit
bd68f701b1
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      docs/topics/class-based-views/intro.txt

+ 2 - 2
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"