app/django/db/models/signals.py
author Todd Larsen <tlarsen@google.com>
Wed, 14 Jan 2009 22:37:05 +0000
changeset 813 68c0eb8656bc
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Display state (but dis-allow edits) of User's agrees_to_tos boolean Property. Patch by: Todd Larsen Review by: to-be-reviewed

from django.dispatch import Signal

class_prepared = Signal(providing_args=["class"])

pre_init = Signal(providing_args=["instance", "args", "kwargs"])
post_init = Signal(providing_args=["instance"])

pre_save = Signal(providing_args=["instance", "raw"])
post_save = Signal(providing_args=["instance", "raw", "created"])

pre_delete = Signal(providing_args=["instance"])
post_delete = Signal(providing_args=["instance"])

post_syncdb = Signal(providing_args=["class", "app", "created_models", "verbosity", "interactive"])