Devinwon / article

0 stars 0 forks source link

filter--slice in django Template #36

Open Devinwon opened 5 years ago

Devinwon commented 5 years ago

{% for subrow in subdic.content|slice:":5" %}

{% endfor %}

{% if "{{subdic.content|length}}" > 5 %}

{% endif %}