瀏覽代碼

Added missing word to render_to_response deprecation warning.

Richard Morrison 6 年之前
父節點
當前提交
35b6a348de
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      django/shortcuts.py

+ 1 - 1
django/shortcuts.py

@@ -20,7 +20,7 @@ def render_to_response(template_name, context=None, content_type=None, status=No
     django.template.loader.render_to_string() with the passed arguments.
     """
     warnings.warn(
-        'render_to_response() is deprecated in favor render(). It has the '
+        'render_to_response() is deprecated in favor of render(). It has the '
         'same signature except that it also requires a request.',
         RemovedInDjango30Warning, stacklevel=2,
     )