providing_args是一个提供给listeners的信号参数集合 e.x. ['obj']
class Signal([providing_args=list])
Defining signals
import django.dispatch
pizza_done=django.dispatch.Signal(providing_args=["toppings","size"])
Sending signals
classPizzaStore(object):
...def send_pizza(self, toppings, size):
pizza_done.send(sender=self, toppings=toppings, size=size)
providing_args是一个提供给listeners的信号参数集合 e.x. ['obj']