Re: sorting model data in template page

2011-04-29 Thread Victor Harada
The for tag does not accept calls with parameter. You should make the view function calculate the sorted list and pass it to the template or create a template tag that accepts your call 2011/4/29 Krish > This code works perfectly, > > {% for talk_child in

sorting model data in template page

2011-04-29 Thread Krish
This code works perfectly, {% for talk_child in talk.child.all %} {{talk_child.text}} {{talk_child.created_dt}} {% endfor %} Now, I want to sort all child based on created_dt ASC (something like below), but it doesn't work. How can I get this right? {% for talk_child in talk.child.order_by