summaryrefslogtreecommitdiff
path: root/docs/ref/class-based-views
diff options
context:
space:
mode:
authorVarun Sharma <varunsharmalive@gmail.com>2016-01-09 17:10:08 +0530
committerTim Graham <timograham@gmail.com>2016-01-11 08:18:44 -0500
commit3d6474e1a50dbaf9684f7fb34bfccb77630f27be (patch)
tree69a388893b2d10c98686053769cea14e92742ec7 /docs/ref/class-based-views
parent0bc5cd628042bf0a44df60a93085a4f991a84dfb (diff)
Fixed #25385 -- Allowed importing views.generic.View from views.View.
Diffstat (limited to 'docs/ref/class-based-views')
-rw-r--r--docs/ref/class-based-views/base.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt
index e477fd1ea4..dd8a81d800 100644
--- a/docs/ref/class-based-views/base.txt
+++ b/docs/ref/class-based-views/base.txt
@@ -19,7 +19,12 @@ View
.. class:: django.views.generic.base.View
The master class-based base view. All other class-based views inherit from
- this base class.
+ this base class. It isn't strictly a generic view and thus can also be
+ imported from ``django.views``.
+
+ .. versionchanged:: 1.10
+
+ The ability to import from ``django.views`` was added.
**Method Flowchart**
@@ -30,7 +35,7 @@ View
**Example views.py**::
from django.http import HttpResponse
- from django.views.generic import View
+ from django.views import View
class MyView(View):