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
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
2 matches
Mail list logo