浏览代码

Fixed #18369 - Fixed argument name in render() function; thanks qsolo825@ for the report.

Tim Graham 12 年之前
父节点
当前提交
1cf8287e3a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/topics/http/shortcuts.txt

+ 2 - 2
docs/topics/http/shortcuts.txt

@@ -15,7 +15,7 @@ introduce controlled coupling for convenience's sake.
 ``render``
 ==========
 
-.. function:: render(request, template[, dictionary][, context_instance][, content_type][, status][, current_app])
+.. function:: render(request, template_name[, dictionary][, context_instance][, content_type][, status][, current_app])
 
    .. versionadded:: 1.3
 
@@ -32,7 +32,7 @@ Required arguments
 ``request``
     The request object used to generate this response.
 
-``template``
+``template_name``
     The full name of a template to use or sequence of template names.
 
 Optional arguments