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

Тел: +7 965 3737 888

360

Просмотров

0

Ответов

Latest instances template filter

<p>Writing templatetags is obnoxious. Say you have a small blurb on all your pages that shows the latest 5 comments posted to the site -- using this filter, you could write the following:</p>
{% for comment in "comments.comment"|latest:5 %}
    ...display comment here...
{% endfor %}

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