2008-08-06 23:32:46 +08:00
|
|
|
from django.dispatch import Signal
|
2006-05-02 09:31:56 +08:00
|
|
|
|
2008-08-06 23:32:46 +08:00
|
|
|
class_prepared = Signal(providing_args=["class"])
|
2006-05-02 09:31:56 +08:00
|
|
|
|
2008-08-06 23:32:46 +08:00
|
|
|
pre_init = Signal(providing_args=["instance", "args", "kwargs"])
|
|
|
|
post_init = Signal(providing_args=["instance"])
|
2006-05-02 09:31:56 +08:00
|
|
|
|
2012-05-12 15:24:20 +08:00
|
|
|
pre_save = Signal(providing_args=["instance", "raw", "using", "update_fields"])
|
|
|
|
post_save = Signal(providing_args=["instance", "raw", "created", "using", "update_fields"])
|
2006-05-02 09:31:56 +08:00
|
|
|
|
2010-08-07 14:27:52 +08:00
|
|
|
pre_delete = Signal(providing_args=["instance", "using"])
|
|
|
|
post_delete = Signal(providing_args=["instance", "using"])
|
2008-08-06 23:32:46 +08:00
|
|
|
|
|
|
|
post_syncdb = Signal(providing_args=["class", "app", "created_models", "verbosity", "interactive"])
|
2010-01-13 19:07:16 +08:00
|
|
|
|
2010-08-07 14:27:52 +08:00
|
|
|
m2m_changed = Signal(providing_args=["action", "instance", "reverse", "model", "pk_set", "using"])
|