app/django/db/models/signals.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 29 Nov 2008 18:30:58 +0000 (2008-11-29)
changeset 611 2ec30182e5f1
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Move parameter construction into a seperate module This is part of an effort to make base.py less bloated and have it's methods be more cohesive. Patch by: Sverre Rabbelier
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"])