Changes between Version 4 and Version 5 of Signals
- Timestamp:
- Jul 1, 2006, 1:09:58 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Signals
v4 v5 42 42 == Example == 43 43 44 The following is taken from [http://zyons.com/ Zyons], the only place I've seen signals used so far. Unless I'm completely incorrect, the following code has the dispatcher call "increment_tag_summary" before a TagUserObject object is saved, and "decrement_tag_summary" after aTagUserObject object is deleted.44 The following is taken from [http://zyons.com/ Zyons], the only place I've seen signals used so far. Unless I'm completely incorrect, the following code has the dispatcher call "increment_tag_summary" before a !TagUserObject object is saved, and "decrement_tag_summary" after a !TagUserObject object is deleted. 45 45 46 46 === models.py ===