djangosnippets.org: Latest snippets posted by vikingosegundohttps://djangosnippets.org/users/vikingosegundo/2009-10-08T10:15:35.446577-05:00vikingosegundoGet sorted items for any model in any order
2009-10-08T10:15:35.446577-05:00vikingosegundohttps://djangosnippets.org/snippets/1753/<p>This get_sorted_items tag takes app.model, a number n, a a field name to sort ,and a variable-name as arguments and will deliver the n first objects of the model.</p>
<p>it checks if a Manager <em>publicmgr</em> exists and calls this if the user isn't authenticated. </p>
<p>Additionally it write the count of …</p>
Freely redistributable