app/django/db/models/signals.py
author Todd Larsen <tlarsen@google.com>
Thu, 20 Nov 2008 17:54:51 +0000
changeset 510 6cd4f44891e5
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
id() is a built-in function in Python, so rename the property to link_id. Add a scope_path StringProperty to cache the string representation of the transitive closure of the nested scopes of an entity. Patch by: Todd Larsen

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"])