app/django/db/models/signals.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 22 Nov 2008 20:54:42 +0000
changeset 564 d928d226cfad
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Hide the 'home' field until we have a proper document selector Rather than having a confusing 'home' field that lists all Linkables (in other words, everything in the database), we're better off hiding it for now.

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