From 3d6474e1a50dbaf9684f7fb34bfccb77630f27be Mon Sep 17 00:00:00 2001 From: Varun Sharma Date: Sat, 9 Jan 2016 17:10:08 +0530 Subject: Fixed #25385 -- Allowed importing views.generic.View from views.View. --- docs/ref/class-based-views/base.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/ref') 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): -- cgit v1.3