B-List Django Template Utilities
James Bennett released some pretty nifty Django template utilities today, as a collection of template tags. At a glance, there’s some useful stuff in there. One of my favorites: {% get_latest_object [app_name].[model_name] as [varname] %}. I can see myself using that one a lot. Also pretty cool: {% get_random_object [app_name].[model_name] as [varname] %}.
Thanks James.
-
http://www.dougma.com Doug Napoleone
-
http://lonelylion.com Chris McAvoy
