浏览代码

Fixed #20890 -- Added missing import in class-based view docs.

Thanks André Augusto.
Tim Graham 11 年之前
父节点
当前提交
ab680725bf
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docs/topics/class-based-views/intro.txt

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

@@ -198,6 +198,7 @@ A similar class-based view might look like::
 
     from django.http import HttpResponseRedirect
     from django.shortcuts import render
+    from django.views.generic.base import View
 
     from .forms import MyForm