Changes between Version 26 and Version 27 of Signals


Ignore:
Timestamp:
08/08/2008 08:31:55 AM (7 years ago)
Author:
hvendelbo
Comment:

New Signals API

Legend:

Unmodified
Added
Removed
Modified
  • Signals

    v26 v27  
    1212== How signals work ==
    1313
    14 A signal is just a simple Python object, and requires nothing special to set up. For example, the `post_save` signal, found in `django.db.models.signals`, is defined like so:
     14A signal is an instance of django.dispatch.Signal acting as reference point for a single activity, and requires nothing special to set up. For example, the `post_save` signal, found in `django.db.models.signals`, is defined like so:
    1515
    1616{{{
     
    1818}}}
    1919
    20 When a piece of code wants to send a signal, it needs to do three things:
     20When a piece of code wants to send a signal, it needs to do two things:
    2121
    2222 1. Import the signal from wherever it's been defined.
Back to Top