浏览代码

Added missing parameter to each_context() in doc example.

Tim Graham 10 年之前
父节点
当前提交
b4caa91c8b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/ref/contrib/admin/index.txt

+ 1 - 1
docs/ref/contrib/admin/index.txt

@@ -1409,7 +1409,7 @@ templates used by the :class:`ModelAdmin` views:
                 # ...
                 context = dict(
                    # Include common variables for rendering the admin template.
-                   self.each_context(),
+                   self.each_context(request),
                    # Anything else you want in the context...
                    key=value,
                 )