Задать вопрос

Тел: +7 965 3737 888

416

Просмотров

0

Ответов

order_by template filter

<p>put this code into a file in a folder "templatetags" inside some application and use it like this:</p>
{% load your_file_name %}

{% for item in your_list|order_by:"field1,-field2,other_class__field_name"

Вопрос полезен? Да0/Нет0
file_4052.py(207.0б)
None