djangosnippets.org: Latest snippets tagged with 'popularity'https://djangosnippets.org/tags/popularity/2007-03-14T22:55:23.561115-05:00Get most-commented objects
2007-03-14T22:55:23.561115-05:00ubernostrumhttps://djangosnippets.org/snippets/108/<p>This is a pretty straightforward bit of code for getting the most-commented objects of a particular model; just drop it into a custom manager for that model, and you should be good to go. Check the docstring for how to make it look at <code>Comment</code> instead of <code>FreeComment</code>.</p>
Freely redistributable