瀏覽代碼

Fixed #30504 -- Corrected redirect() signature in docs.

Shashank Parekh 5 年之前
父節點
當前提交
8000767769
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/http/shortcuts.txt

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

@@ -84,7 +84,7 @@ This example is equivalent to::
 ``redirect()``
 ==============
 
-.. function:: redirect(to, permanent=False, *args, **kwargs)
+.. function:: redirect(to, *args, permanent=False, **kwargs)
 
    Returns an :class:`~django.http.HttpResponseRedirect` to the appropriate URL
    for the arguments passed.