Hi,

What is a benefit of using django signals instead of modifying the
save() method ?

Reading some code, I've noticed that many use counters columns in
Models,
and update with post_save() signal instead of doing this in save()
method ?
I understand them as it avoids of doing counts all the time (if not
using cache).

Example:
nr of posts posts in forum thread, scores.. etc.

When should I use post_save() and when should I use save() ?

Thanks,

--
Robert


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to