浏览代码

Fixed #33909 -- Corrected django.dispatch.receiver() signature.

Youssef 2 年之前
父节点
当前提交
0cbbed49f4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      docs/topics/signals.txt

+ 3 - 1
docs/topics/signals.txt

@@ -112,9 +112,11 @@ manual connect route::
 
 Alternatively, you can use a :func:`receiver` decorator:
 
-.. function:: receiver(signal)
+.. function:: receiver(signal, **kwargs)
 
     :param signal: A signal or a list of signals to connect a function to.
+    :param kwargs: Wildcard keyword arguments to pass to a
+        :ref:`function <receiver-functions>`.
 
 Here's how you connect with the decorator::