class Signal(providing_args=list)
[source]
All signals are django.dispatch.Signal
instances. The providing_args
is a list of the names of arguments the signal will provide to listeners. This is purely documentational, however, as there is nothing that checks that the signal actually provides these arguments to its listeners.
For example:
import django.dispatch pizza_done = django.dispatch.Signal(providing_args=["toppings", "size"])
This declares a pizza_done
signal that will provide receivers with toppings
and size
arguments.
Remember that you’re allowed to change this list of arguments at any time, so getting the API right on the first try isn’t necessary.
Please login to continue.