djangosnippets.org: Latest snippets tagged with 'voting'http://djangosnippets.org/tags/voting/2008-09-26T16:43:54.344998-05:00Simple Signal to denormalize vote counts in django-voting
2008-09-26T16:43:54.344998-05:00ericmoritzhttp://djangosnippets.org/snippets/1087/<p>This attaches a signal to the save and delete signals for the Vote object and recalculates the score for the object and stores it in that object's vote_score attribute.</p>
<p>This allows you to have a list of those objects and not have to calculate in the database the vote score …</p>
Freely redistributable